[wp-trac] [WordPress Trac] #26842: Contenteditable, multiple spaces,  , and U+00A0
WordPress Trac
noreply at wordpress.org
Wed Mar 26 23:02:16 UTC 2014
#26842: Contenteditable, multiple spaces,  , and U+00A0
------------------------------+-----------------------------
Reporter: azaozz | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: TinyMCE | Version:
Severity: normal | Resolution:
Keywords: needs-unit-tests | Focuses:
------------------------------+-----------------------------
Changes (by azaozz):
* milestone: 3.9 => Future Release
Comment:
> Changing the TinyMCE configuration affects the behavior of leading
spaces in paragraphs.
Yes, since the charset in JS is UTF-8, `\s` matches U+00A0. Once we have
the HTML entities there, they will be treated as string. Leading spaces in
paragraphs are still user input.
Will need to add tests (both JS and PHP) and try to cover all places that
will be affected by this change. Most notably the JS wpautop() and
pre_wpautop() and also the PHP wpautop().
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26842#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list