Thread:Extension talk:WYSIWYG/Formatting in image captions causes parsererror

Presently, any kind of formatting in image captions makes the parser crash. Wikitext syntax, in general (wikipedia, mediawiki, etc.) allow wikitext and even some html tags. For example :

What I noticed :


 * If you insert a character like  in wysiwyg mode in the caption (using the dialog), when switching to wikitext mode, you get a
 * If you insert wikitext like links of italic in wysiwyg mode, you can see it normally when switching to wikitext mode, but if you switch back to wysiwyg, all marks of wysiwyg have been stripped.
 * If you insert certain html tags like  or   in wikitext mode, when switching to wysiwyg mode they have been stripped.
 * If you insert html tags like  or a single   in wikitext mode, you get a when switching back to wysiwyg mode.

I didn't manage to find where I could fix that. Am I right if I say that :
 * wysiwyg -> wikitext parsing is coded in mediawiki/plugin.js
 * wikitext -> wysiwyg parsing is coded in CKeditorLinker.php - with functions in other files ?

I tried to change to  in mediawiki/plugin.js but it has no effect.

Any idea ?