[wp-trac] [WordPress Trac] #6224: TinyMCE configuration removes DIVs unnecessarily

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 14 14:36:04 GMT 2008


#6224: TinyMCE configuration removes DIVs unnecessarily
------------------------+---------------------------------------------------
 Reporter:  offmessage  |       Owner:  anonymous
     Type:  defect      |      Status:  new      
 Priority:  normal      |   Milestone:           
Component:  TinyMCE     |     Version:  2.3.3    
 Severity:  normal      |    Keywords:           
------------------------+---------------------------------------------------
 source:branches/2.3/wp-includes/js/tinymce/tiny_mce_config.php at 5700#25
 forces TinyMCE to try and replace <DIV>s with <P>s.  This seems completely
 unnecessary and breaks any use of microformats in blog posts.  Even more
 annoyingly it is different for blogs hosted on wordpress.com, where this
 configuration is not present.

 {{{
 @@ -23,5 +23,5 @@

   // Set up init variables
 - $valid_elements =
 'p/-div[*],-strong/-b[*],-em/-i[*],-font[*],-ul[*],-ol[*],-li[*],*[*]';
 + $valid_elements =
 '-div[*],-strong/-b[*],-em/-i[*],-font[*],-ul[*],-ol[*],-li[*],*[*]';
   $valid_elements = apply_filters('mce_valid_elements', $valid_elements);
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6224>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list