Mediawiki-wysiwyg / WYSIWYG-CKeditor

Mediawiki extension: WYSIWYG. Includes extension and other components required by it
GNU General Public License v3.0
67 stars 34 forks source link

duplicating link [edit] and table of content after save page #127

Closed ProvincePedia closed 4 years ago

ProvincePedia commented 4 years ago

When editing a page in the form, a TOC and links [edit] after the headers appear. After saving the TOC and links [edit] are duplicated.

MediaWiki: 1.34.0

WikiEditor: 0.5.0

WYSIWYG: 1.5.6_0 [B551+18.09.2018]

CKEditor: 4.6.2 (revision 20af917) 1 2

ProvincePedia commented 4 years ago

I fix it by replacing in the file extensions/WYSIWYG/CKeditorParser.body.php: from $parserOutput->getText(array() to $parserOutput->getText(array('allowTOC'=>false,'enableSectionEditLinks'=>false)) on lines: 1201,1202,1224,1236,1240,1246,1255,1262,1271,1275,1276,1277,1280,1282,1286 (all matches)