[wp-trac] Re: [WordPress Trac] #3826: TinyMCE misconfiguration causes erronous tag replacements

WordPress Trac wp-trac at lists.automattic.com
Wed Jun 13 17:11:57 GMT 2007


#3826: TinyMCE misconfiguration causes erronous tag replacements
------------------------+---------------------------------------------------
 Reporter:  novasource  |        Owner:  andy       
     Type:  defect      |       Status:  new        
 Priority:  normal      |    Milestone:  2.3 (trunk)
Component:  TinyMCE     |      Version:  2.2        
 Severity:  normal      |   Resolution:             
 Keywords:              |  
------------------------+---------------------------------------------------
Comment (by andy):

 I don't want to be the only person who knows which line of code causes
 this behavior. tiny_mce_config.php sets and filters $valid_elements. The
 syntax for this tinymce parameter is explained in the
 [http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/valid_elements
 tinymce wiki].

 {{{p/-div[*]}}} means "p is allowed; div will be converted to p and empty
 divs are not allowed; all attributes are allowed on this."

 So if you want to remove the div-to-p conversion, remove that entire term
 from the valid_elements string.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3826#comment:12>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list