[wp-trac] [WordPress Trac] #19947: Copy paste behavior in Visual mode differs from HTML mode

WordPress Trac noreply at wordpress.org
Mon Feb 3 00:17:53 UTC 2014


#19947: Copy paste behavior in Visual mode differs from HTML mode
-------------------------------------+----------------------
 Reporter:  BjornW                   |       Owner:
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:
Component:  Editor                   |     Version:
 Severity:  normal                   |  Resolution:  invalid
 Keywords:  ux-feedback 2nd-opinion  |     Focuses:
-------------------------------------+----------------------

Comment (by azaozz):

 Well, I had to include the full explanation in case other people reading
 this are now aware :)

 > My ticket should be read as an UX annoyance which we may be able to fix:
 make the behaviour consistent in WordPress instead of adhering the current
 status quo of inconsistency.

 Agreed. A "quick and dirty" fix would be to redirect the paste to a hidden
 div with contenteditable="true", then insert the innerHTML into the
 textarea. However considering how much "garbage" is inserted together with
 the tags, especially when using Chrome or copying from old MSWord, there
 should be a lot of cleanup.

 If somebody wants to take a crack at that, feel free to reopen this
 ticket.

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


More information about the wp-trac mailing list