Author: w.walc
Description:
adds new hook to Sanitizer
Overview:
FCKeditor extension uses it's own parser in Ajax calls to convert wiki text into HTML.
This customized parser actually simply extends MediaWiki parser by overriding original methods and modifies the way how text is parsed (e.g it does not perform template substitution, keeps HTML comments).
There is one problem with templates (reported here: http://dev.fckeditor.net/ticket/2069).
The problem:
Suppose we have:
{|{{Prettytable}}
- | |
{{Hl2}} | Cell 1 |
{{Hl2}} | Cell 2 |
} | |
FCKeditor extension converts {{Prettytable}} to unique string identificator before sending text to internalParse(). This uniqueid is unfortunately later stripped by Sanitizer::fixTagAttributes().
I have already fixed the FCKeditor extension - adding SanitizerAfterFixTagAttributes hook allows me to add back required text to $attribs array, but the problem is that now users must apply manual changes in the MediaWiki core in order to have it fixed.
It would be great if this hook (SanitizerAfterFixTagAttributes) could be added to the core in MediaWiki 1.13.
Version: 1.13.x
Severity: enhancement
URL: http://dev.fckeditor.net/ticket/2069
attachment SanitizerAfterFixTagAttributes.patch ignored as obsolete