FCKEditor doesn't recognise some new tags, so processes them resulting in garbage static html when users use this Rich Editor. The main example is categorytree. Many versions back FCK added support for new tags but this hasn't help me and I've tried a few versions and basically have given up. I have this problem on my XAMPP dev server and production linux box.
Below you can see my original explanations of my problem.
Turns out I'm only having problems with certain tags and protection of all tags was introduced a while ago.
My parser function tags are :
<categorytree>, <cso_source>, <gallery>, <nowiki>, <pre>, <skin>, <source> and <syntaxhighlight>
Tags that don't work:
<categorytree>, <syntaxhighlight>, <source>
The other tags work just fine, including the cso_source and skin extension tags
I have
- Updated FCKEditor, twice
- Ran maintenance\update.php
- tried updating CategoryTree to trunk (doesn't seem compatible)
Any other suggestions?
Originally titled 'Protect extension tags in Wikimedia from FCKeditor'
Does anyone know how to extend FCKeditor to ignore new tags, introduced by extensions, like the WYSIWYG ignores <nowiki>
?
The likes of <categorytree>...</categorytree>
and <syntaxhighlight lang="php"> ... </syntaxhighlight>
are corrupted. They are converted to the resulting HTML by FCKeditor and reformatted rather than protecting the wikitext.
The best I could find is the following which GeSHI uses for Drupal.
FCKConfig.ProtectedSource.Add( /<vbnet>[\s\S]*?<\/vbnet>/g );
My attempts to use FCKConfig.ProtectedSource.Add failed and lead me to believe the problem is more fundamental for wikis.
Any help would be appreciated.
I'm running:
MediaWiki 1.16.2
PHP 5.3.5 (apache2handler)
MySQL 5.5.8
MultipleUpload (Version 2.0)
Special:UserScore CategoryTree
SyntaxHighlight (Version 1.0.8.6)
Widgets (Version 0.9.0-dev)
FCKeditor (Version 1.0.1)