[wp-trac] Re: [WordPress Trac] #2420: nbsp entity is removed by the editor

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 8 00:53:19 GMT 2007


#2420: nbsp entity is removed by the editor
--------------------------------+-------------------------------------------
 Reporter:  tardieu             |        Owner:  anonymous
     Type:  defect              |       Status:  new      
 Priority:  normal              |    Milestone:  2.2      
Component:  General             |      Version:  2.0      
 Severity:  normal              |   Resolution:           
 Keywords:  nbsp editor visual  |  
--------------------------------+-------------------------------------------
Changes (by jhodgdon):

  * keywords:  nbsp, editor => nbsp editor visual
  * milestone:  => 2.2

Comment:

 This is partially correct, as of SVN [4984].

 If you enter a non-breaking space by typing   into the Code window
 when editing a post, and then save the post, the non-breaking space will
 be there.

 If you subsequently edit the post again, when you come back into the code
 editing window, the nbsp will be removed and converted into a regular
 space, and then if you save, you will lose the nbsp.

 HOWEVER, if you set your user preferences to disable the Visual editor,
 the problem goes away (i.e. the nbsp gets preserved).

 So it appears the problem lies at the point where the Visual editor reads
 the information from the database and puts it in the visual editing
 window, and then when you click on the Code tab, it is converting what you
 see (a plain space) back into code and losing the nbsp information.

 Not sure if it is fixable. ?? I don't know much about Tiny MCE.

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


More information about the wp-trac mailing list