Changes between Initial Version and Version 1 of Ticket #39837, comment 3
- Timestamp:
- 07/03/2019 09:58:35 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #39837, comment 3
initial v1 1 1 > there are five spaces in the broken code that are actually non-breaking spaces 2 2 3 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 e dge cases.3 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 errors and edge cases. 4 4 5 5 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.