#2432: Unknown parser tag has brackets changed to < and >
--------------------------------------------+-------------------------------
  Reporter:  djb                            |       Owner:                   
      Type:  Bug                            |      Status:  new              
  Priority:  Normal                         |   Milestone:                   
 Component:  Project : MediaWiki+FCKeditor  |     Version:  FCKeditor 2.6.3  
Resolution:                                 |    Keywords:  Confirmed Review+
--------------------------------------------+-------------------------------
Changes (by wwalc):

  * keywords:  Confirmed Review? => Confirmed Review+


Comment:

 Looks good. Please initialize this variable in FCKeditor.php:
 {{{
 //associative array with definitions of tags to protect
 $RTEprotectedTags = array();
 }}}
 and add some clean examples and a short comment. It may be an example with
 `source` tag:

 {{{
 /*
  * Use tag name as a key.
  * "protect" attribute tells FCKeditor how to proceed with content.
  * Set it to false to allow wiki text transformation.
  * When set to true, protect content as a <special> tag
  */
 $RTEprotectedTags[ 'source' ] = array(
 'protect' => true,
 );
 }}}

 (at least until #2324 is solved).

 One performance tip:
 {{{
 in_array($tagName, array_keys($RTEprotectedTags))
 }}}
 can probably changed into:
 {{{
 isset($RTEprotectedTags[$tagName])
 }}}
 AFAIK it executes much faster.

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/2432#comment:4>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to