#2157: editor strips off image comments containing wikitext
--------------------------------------------+-------------------------------
  Reporter:  feystorm                       |       Owner:                 
      Type:  Bug                            |      Status:  new            
  Priority:  Normal                         |   Milestone:                 
 Component:  Project : MediaWiki+FCKeditor  |     Version:  FCKeditor 2.5.1
Resolution:                                 |    Keywords:  Confirmed      
--------------------------------------------+-------------------------------
Comment (by wwalc):

 Tempoary fix: [2089].

 It seems that it can't be fixed without overwriting replaceInternalLinks
 function from the old Parser. There is no other way to affect this code:
 {{{
 if ( $ns == NS_IMAGE ) {
         wfProfileIn( "$fname-image" );
         if ( !wfIsBadImage( $nt->getDBkey(), $this->mTitle ) ) {
                 # recursively parse links inside the image caption
                 # actually, this will parse them in any other parameters,
 too,
                 # but it might be hard to fix that, and it doesn't matter
 ATM
                 $text = $this->replaceExternalLinks($text);
                 $text = $this->replaceInternalLinks($text);

                 # cloak any absolute URLs inside the image markup, so
 replaceExternalLinks() won't touch them
                 $s .= $prefix . $this->armorLinks( $this->makeImage( $nt,
 $text ) ) . $trail;
                 $this->mOutput->addImage( $nt->getDBkey() );

                 wfProfileOut( "$fname-image" );
                 continue;
         } else {
                 # We still need to record the image's presence on the page
                 $this->mOutput->addImage( $nt->getDBkey() );
         }
         wfProfileOut( "$fname-image" );
 }
 }}}

 this is the line which should be changed before going further...
 {{{
 $this->replaceInternalLinks($text);
 }}}
 it doesn't look like an easy task though.

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/2157#comment:3>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to