Opened 10 years ago
Closed 10 years ago
#30826 closed defect (bug) (invalid)
Spaces sometimes disappear when pasting text into TinyMCE
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | TinyMCE | Keywords: | |
Focuses: | Cc: |
Description
Appears to be a contenteditable
bug. Happens in WordPress, TinyMCE demo and plain contenteditable
field.
Seems to have something to do with spaces at the end of a line.
To reproduce, copy the first paragraph here and paste it in the visual editor. The space between "model" and "property" disappears.
Copy the second paragraph of this article and paste it in the visual editor. The space between "Drongen," and "Gentbrugge" disappears along with some other spaces. So it's not just after an HTML tag.
The spaces are preserved when pasting into a textarea
.
Chrome 39.0.2171.95 (64-bit)
OSX Yosemite (10.10.1)
Change History (4)
#2
@
10 years ago
Looks like a space needs to be added before spans that have text-align: start;
, as there are no spaces in the clipboard.
Also forwarded this ticket to Johan.
#3
@
10 years ago
This looks like Chrome bug. The number and position of the missing spaces depend on the text wrapping on the web page where the content is copied from. Perhaps worth it opening a Chromium bug report (needs reduced example).
#4
@
10 years ago
- Milestone Awaiting Review deleted
- Resolution set to invalid
- Status changed from new to closed
Closing as there's nothing we can do about it. There's already a bug report here: https://code.google.com/p/chromium/issues/detail?id=318925.
Happens in Safari too, does not happen in Firefox.