[wp-trac] [WordPress Trac] #30826: Spaces sometimes disappear when pasting text into TinyMCE

WordPress Trac noreply at wordpress.org
Tue Dec 23 10:24:41 UTC 2014


#30826: Spaces sometimes disappear when pasting text into TinyMCE
--------------------------+-----------------------------
 Reporter:  avryl         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  TinyMCE       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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 [http://backbonejs.org/#Collection-
 add here] and paste it in the visual editor. The space between "model" and
 "property" disappears.

 Copy the second paragraph of [https://en.wikipedia.org/wiki/Ghent 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)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30826>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list