Last modified: 2013-10-07 15:11:01 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T54771, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52771 - VisualEditor: Pasting block level elements can lose annotations
VisualEditor: Pasting block level elements can lose annotations
Product: VisualEditor
Classification: Unclassified
ContentEditable (Other open bugs)
All All
: High normal
: VE-deploy-2013-09-26
Assigned To: Ed Sanders
Depends on:
Blocks: ve-richpaste
  Show dependency treegraph
Reported: 2013-08-12 21:43 UTC by Richard Morris
Modified: 2013-10-07 15:11 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Richard Morris 2013-08-12 21:43:03 UTC
If you copy a block level element and try to paste it all the annotations (links, bold, italic etc.) are removed and it is just pasted as plain text. You need to select the whole line with the selection region going all the way to the right of the screen. 

For example in 
selecting the whole of the final paragraph and coping and pasting loses anotation.

Examining the clipboard in this case its something like
<meta charset='utf-8'><p data-parsoid ...</p><br class="Apple-interchange-newline">
Comment 1 Ed Sanders 2013-10-07 14:42:41 UTC
Can't reproduce.
Comment 2 James Forrester 2013-10-07 15:11:01 UTC
Can confirm that this has been incidentally fixed as part of Ed's work on copy-and-paste - tested in Chrome/Firefox/Safari/Opera. (Yay.)

Note You need to log in before you can comment on or make changes to this bug.