[wp-trac] [WordPress Trac] #23778: How do you keep WordPress from removing the non-breaking space?

WordPress Trac noreply at wordpress.org
Fri Mar 15 08:35:30 UTC 2013


#23778: How do you keep WordPress from removing the non-breaking space?
--------------------------+------------------------
 Reporter:  spherman      |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  TinyMCE       |     Version:  2.0
 Severity:  normal        |  Resolution:  duplicate
 Keywords:                |
--------------------------+------------------------

Comment (by SergeyBiryukov):

 Actually, this seems to work too:
 {{{
 function allow_nbsp_in_tinymce( $mceInit ) {
         $mceInit['entities'] = '160,nbsp,38,amp,60,lt,62,gt';
         return $mceInit;
 }
 add_filter( 'tiny_mce_before_init', 'allow_nbsp_in_tinymce' );
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23778#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list