[wp-trac] [WordPress Trac] #34642: Pasting a block of text that was copied in Chrome may insert a trailing paragraph

WordPress Trac noreply at wordpress.org
Tue Nov 10 04:26:06 UTC 2015


#34642: Pasting a block of text that was copied in Chrome may insert a trailing
paragraph
--------------------------+------------------
 Reporter:  azaozz        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.4
Component:  TinyMCE       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------

Comment (by azaozz):

 Happens when copying from all WebKit based browsers. Caused by the browser
 appending a `<br class="Apple-interchange-newline">` to the clipboard.

 This behaviour is not new. TinyMCE removes these br tags but only when
 running the "word filtering". Seems these have to be removed in all cases.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34642#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list