Last modified: 2014-11-03 16:08:40 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 T51396, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49396 - VisualEditor: Can't copy/paste a reference or template unless you select text either side
VisualEditor: Can't copy/paste a reference or template unless you select text...
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
ContentEditable (Other open bugs)
unspecified
All All
: High normal
: VE-deploy-2013-09-12
Assigned To: Ed Sanders
:
: 50594 52212 (view as bug list)
Depends on: 53375
Blocks: ve-richpaste
  Show dependency treegraph
 
Reported: 2013-06-10 18:26 UTC by Ed Sanders
Modified: 2014-11-03 16:08 UTC (History)
11 users (show)

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


Attachments

Description Ed Sanders 2013-06-10 18:26:00 UTC
Create a document:

Foo <ref>Bar</ref> Baz
<references />

=>

Foo [1] Baz
1. Bar


==Test==
1. Select and copy from '[' to ']' (no whitespace)
2. Try to paste
3. Note you now just have plain text [1]
4. Note also if you make a larger selection (e.g. from 'o' to 'B'), copy/paste works fine.

This might be to do with whitespace truncation, and probably applies to other inline nodes.
Comment 1 James Forrester 2013-07-02 19:43:29 UTC
*** Bug 50594 has been marked as a duplicate of this bug. ***
Comment 2 Joe Schmedley 2013-07-07 04:13:10 UTC
Note that, at least in Chrome, whitespace is <i>not</t> enough to count as additional text.
Comment 3 John Mark Vandenberg 2013-07-29 21:41:24 UTC
*** Bug 52212 has been marked as a duplicate of this bug. ***
Comment 4 Chris McKenna 2013-08-16 23:26:05 UTC
Note this behaviour also occurs with templates
Comment 5 Ed Sanders 2013-08-26 19:19:52 UTC
https://gerrit.wikimedia.org/r/#/c/80301/ fixes
Comment 6 Gerrit Notification Bot 2013-08-26 19:49:48 UTC
Change 80301 had a related patch set uploaded by Jforrester:
Copy-paste data fixes

https://gerrit.wikimedia.org/r/80301
Comment 7 Gerrit Notification Bot 2013-08-27 20:21:04 UTC
Change 80301 merged by jenkins-bot:
Copy-paste data fixes

https://gerrit.wikimedia.org/r/80301
Comment 8 James Forrester 2013-08-27 20:22:02 UTC
Fixed in master; will be deployed on Thursday as part of the regular push.
Comment 9 Ed Sanders 2013-08-27 22:37:28 UTC
This is still broken in FF, see bug 53375
Comment 10 Gerrit Notification Bot 2013-09-07 10:02:34 UTC
Change 83222 had a related patch set uploaded by Esanders:
The Great [...] Rewrite of 2013: Clipboard edition

https://gerrit.wikimedia.org/r/83222
Comment 11 Gerrit Notification Bot 2013-09-11 18:15:14 UTC
Change 83222 merged by jenkins-bot:
The Great [...] Rewrite of 2013: Clipboard edition

https://gerrit.wikimedia.org/r/83222
Comment 12 Elitre 2014-11-03 13:13:52 UTC
I think this is still occurring (https://it.wikipedia.org/w/index.php?title=Utente%3AElitre_%28WMF%29%2FSandbox&diff=68973564&oldid=68973535 ).
I'm using Safari, and I don't know if this is related to Bug 70143.
Comment 13 James Forrester 2014-11-03 16:08:40 UTC
No, this was and remains fixed. Test in Chrome or Firefox, for example.

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


Navigation
Links