[wp-trac] [WordPress Trac] #35022: WP allows Unicode 0x00a0 spaces in editor but shortcode parser can't handle them
WordPress Trac
noreply at wordpress.org
Fri Dec 11 22:20:52 UTC 2015
#35022: WP allows Unicode 0x00a0 spaces in editor but shortcode parser can't handle
them
--------------------------+------------------------------
Reporter: steevithak | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Shortcodes | Version: 4.4
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by Otto42):
In the Visual editor, if you insert more than one space in a row,
presumably in an attempt to space something out vertically, the Visual
editor will make every other character a non-breaking space (A0). This
prevents that vertical space from collapsing back to a single space when
you switch between Text mode and Visual mode. It also prevents the HTML
rendering of the data from collapsing the extra space as well.
This appears to be intentional and part of TinyMCE, which means we should
probably recognize A0's for shortcodes as well.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35022#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list