[wp-trac] [WordPress Trac] #21025: WordPress' TinyMCE automatically remove Invisible Space (\u200B)

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 21 01:06:45 UTC 2012


#21025: WordPress' TinyMCE automatically remove Invisible Space (\u200B)
--------------------------+-----------------------
 Reporter:  so_vichet     |       Owner:  azaozz
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  3.4.1
Component:  TinyMCE       |     Version:  3.4
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+-----------------------

Comment (by azaozz):

 TinyMCE uses "zero-width non-breaking space" characters to place the caret
 in DOM nodes and some other places. In version 3.4.5 (WP 3.3) only
 `\uFEFF` was used, however in version 3.4.9 (WP 3.4) `\u200B` is used
 instead of `\uFEFF` in Gecko. Unfortunately both are stripped from the
 content when the DOM is serialized.

 This code exists in TinyMCE latest too:
 https://github.com/tinymce/tinymce/blob/master/jscripts/tiny_mce/classes/dom/Serializer.js#L346

 The only thing we could do is to pass this upstream.

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


More information about the wp-trac mailing list