#31676 closed defect (bug) (duplicate)
being inserted in visual editor when highlighting and overwriting text
Reported by: | AdamCapriola | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | TinyMCE | Keywords: | |
Focuses: | Cc: |
Description
I've noticed
characters in my content at times when inspecting the HTML of published posts, which is troublesome because the typeface I'm using treats the spacing of
and regular spaces differently, and I think I've finally figured out how to replicate the inserting of these rogue
.
- Have content in the visual editor.
- Highlight some of the text.
- Overwrite the text, press spacebar, type some more text, and press spacebar again.
- Now preview the post and inspect the paragraph:
Voila.
I am on OSX 10.10.2 and am replicating this on Chrome. This ticket might be related: https://core.trac.wordpress.org/ticket/31157
Attachments (2)
Change History (6)
#2
@
10 years ago
It looks like TinyMCE creates a new text node for that edit and then pads the end with
if you use a space.
#4
@
10 years ago
- Milestone Awaiting Review deleted
- Resolution set to duplicate
- Status changed from new to closed
- Version 4.1.1 deleted
It looks like that's just contenteditable doing it. Spaces are padded at the end of text nodes. I'm going to close this as a duplicate of #31157 since it's the same issue really. Text nodes are padded with
in Chrome.
Here are some screencaps of the process: