[wp-trac] [WordPress Trac] #39837: Random blank spaces appearing at end of lines
WordPress Trac
noreply at wordpress.org
Wed Jul 3 09:57:41 UTC 2019
#39837: Random blank spaces appearing at end of lines
--------------------------+-------------------------
Reporter: maliktunga | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: TinyMCE | Version: 4.7.2
Severity: normal | Resolution: worksforme
Keywords: | Focuses:
--------------------------+-------------------------
Changes (by azaozz):
* status: new => closed
* resolution: => worksforme
* milestone: Awaiting Review =>
Comment:
> there are five spaces in the broken code that are actually non-breaking
spaces
Yes, this is the same feature (bug) in the browsers trying to keep empty
spaces typed by the user in contenteditable. In some cases and in some
browsers these invisible non-breaking spaces are inserted at many
different places. Unfortunately it is impossible to "guess" whether the
user intended to insert a ` ` or the browser just added it, so fixing
this is pretty hard/prone to edge cases.
This works much better in the block editor now. Closing as worksforme as
it is the expected browser behaviour in contenteditable. Feel free to
reopen with ideas about how to make it better in the classic editor, if
still needed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39837#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list