Last modified: 2014-09-01 23:29:25 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 T35105, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33105 - (ve-richpaste) VisualEditor: Preserve rich text formatting when pasting from internal or external sources (tracking)
(ve-richpaste)
VisualEditor: Preserve rich text formatting when pasting from internal or ext...
Status: ASSIGNED
Product: VisualEditor
Classification: Unclassified
ContentEditable (Other open bugs)
unspecified
All All
: Normal enhancement
: ---
Assigned To: Editing team bugs – take if you're interested!
: tracking
: 37860 50282 50283 50401 50946 51220 (view as bug list)
Depends on: 37932 48172 48720 50126 51725 52091 58379 58383 58388 41193 48170 49396 50128 51538 52096 52102 52271 52771 53781 53828 54262 54410 54721 54728 58241 58318 58384 58387 58389 58419
Blocks: tracking ve-tracking
  Show dependency treegraph
 
Reported: 2011-12-14 14:41 UTC by Liangent
Modified: 2014-09-01 23:29 UTC (History)
18 users (show)

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


Attachments

Description Liangent 2011-12-14 14:41:56 UTC
No matter the text is copied from an external source of another part of the document.
Comment 1 Trevor Parscal 2011-12-14 19:20:49 UTC
Right now we only support plain text copy and paste. Rich text copy and paste within the document will be supported next, and eventually rich text paste from content copied outside the document will be supported where possible.
Comment 2 Brion Vibber 2011-12-14 19:22:07 UTC
Tweaking title to clarify for enhancement request, so this'll look nice in the tracker. :)
Comment 3 James Forrester 2012-06-22 18:31:27 UTC
Confirmed still a missing feature in current version. :-)
Comment 4 Christian Williams 2012-06-22 21:10:13 UTC
When copying one portion of the article and pasting into the same article, rich text pasting IS supported. Copying from an external source (another article or another application), only plain text pasting is supported.

@Liangent, what platform/browser/version/method are you using to copy and paste? Very specific instructions would be helpful.
Comment 5 Christian Williams 2012-06-22 21:19:06 UTC
Oops, James just pointed out to me that this bug was originally filed against the December demo that used a very different copy/paste mechanism. For now, I'm leaving this open as an enhancement to fully support rich text copy and paste from external sources.
Comment 6 James Forrester 2012-06-22 22:06:14 UTC
Mass-moving items into VisualEditor product
Comment 7 James Forrester 2012-06-23 01:36:20 UTC
Mass-move out of "General" to "ContentEditable".
Comment 8 James Forrester 2012-06-25 16:54:00 UTC
Clarify title
Comment 9 Christian Williams 2012-06-29 00:33:24 UTC
With this change:
https://gerrit.wikimedia.org/r/#/c/13423/
rich copying and pasting from other ve instances (same wiki, same browser) is supported. I've changed the title to only indicate the feature request for rich copy and paste from external sources (other websites, Microsoft Word, etc).
Comment 10 Christian Williams 2013-02-25 23:27:57 UTC
Due to added complexity to the Linear Model in the last 6 months, the previously-supported copy and paste from separate ve instances is no longer supported as we work toward a universal solution.
Comment 11 James Forrester 2013-07-02 20:07:55 UTC
*** Bug 37860 has been marked as a duplicate of this bug. ***
Comment 12 James Forrester 2013-07-15 01:17:46 UTC
*** Bug 50946 has been marked as a duplicate of this bug. ***
Comment 13 James Forrester 2013-07-15 01:18:14 UTC
*** Bug 50283 has been marked as a duplicate of this bug. ***
Comment 14 James Forrester 2013-07-15 01:18:36 UTC
*** Bug 50401 has been marked as a duplicate of this bug. ***
Comment 15 James Forrester 2013-07-15 01:18:50 UTC
*** Bug 50282 has been marked as a duplicate of this bug. ***
Comment 16 John Mark Vandenberg 2013-07-22 02:25:59 UTC
*** Bug 51220 has been marked as a duplicate of this bug. ***
Comment 17 Excirial 2013-07-22 17:53:57 UTC
Since 51220 has been marked as a duplicate, i figure it might be useful to respond here - especially since this bug has been open for a while.

At the moment it would seem that it is impossible to rearrange or move a section in the visual editor if that section contains an image inside it. Drag and Drop is not supported as of yet, and copy / cut and pasting of such as section results in the removal of all wikisyntax (And the image) from that section.

Images themselves are often present in the middle of a section so this issue is common. At the same time the article's that receive most traffic are the most likely to suffer from this issue (If we assume that the best quality article's tend to be the ones most commonly visited).
Comment 18 Richard Morris 2013-07-25 22:25:58 UTC
Is it supposed to be working for cut and paste inside a single article? 

I've had variable results trying to rearrange sections in http://en.wikipedia.org/wiki/MathML
in particular the subsections of Software support. Sometimes it works fine other times it loses formatting and references.

Steps to reproduce:
1) Edit this revision:
http://en.wikipedia.org/w/index.php?title=MathML&oldid=565784757&veaction=edit
2) Scroll down to Software support
3) Make a couple of blank lines above "Editors"
4) Select the whole of the Web browsers section. When selecting ensure the selection is a complete rectangle going all the way to the right hand border.
5) Copy and paste above Editors

If instead selecting a rectangular region the selection goes to the last character on the last line, the copy and paste seems to work fine.
Comment 19 James Forrester 2013-07-26 23:12:29 UTC
*** Bug 52091 has been marked as a duplicate of this bug. ***
Comment 20 James Forrester 2013-08-08 06:19:04 UTC
*** Bug 37860 has been marked as a duplicate of this bug. ***
Comment 21 Richard Morris 2013-08-09 20:05:46 UTC
Another example discussed at 
http://en.wikipedia.org/w/index.php?title=Wikipedia:VisualEditor/Feedback#Editing existing bulleted lists

THe bug occurred in editing [[en:Education in the United States#Electives]], all styling and links are lost

To reproduce the error reliably:
edit any bullet list immediately preceding a section header with the visual editor.
1) Bring the cursor to the beginning of the last bullet.
2) Holding down the CTRL-key, press the down-cursor key, thereby selecting the entire line plus some part of the following header.
3) Still holding down the CTRL-key, press the left-cursor key just until the header letters no longer appear as selected.
4) Cut the selected text and paste it in front of an earlier bullet point (or, probably, anywhere else in the article). Weird results ensue.

Incidentally, as soon as the text is cut, the up-cursor button is disabled.
I believe that the following line's header formatting codes are actually selected but the user cannot see this. Microsoft Word has similar buggy behavior.

I can reproduce the same on chrome on a mac, with shift and arrow keys.
Comment 22 Trevor (Wikia) 2013-09-27 18:24:24 UTC
I am noticing that in latest Mac/Chrome, in-article formatting is preserved when copying or cutting and pasting. However in latest Mac/Firefox all formatting is being stripped. Is that issue within the scope of this ticket, or should I open another?
Comment 23 James Forrester 2013-09-27 19:11:59 UTC
(In reply to comment #22)
> I am noticing that in latest Mac/Chrome, in-article formatting is preserved
> when copying or cutting and pasting. However in latest Mac/Firefox all
> formatting is being stripped. Is that issue within the scope of this ticket,
> or
> should I open another?

Please open another (though I can't reproduce locally - both Chrome and Firefox work the same for me).
Comment 24 Quim Gil 2013-10-15 05:58:07 UTC
Does this "rich formatting" include references and other VisualEditor artifacts? 

Use case: 

An editor is translating an article from en.wiki to zz.wiki. Opens both pages with VisualEditor, copies the content from en.wiki and pastes it to zz.wiki.
Comment 25 Ed Sanders 2013-10-24 14:56:59 UTC
@Quim, good question. The current implementation we're working on will let you copy cross wiki with no questions asked, but as you point out, if the template or image doesn't exist on the other wiki you going to have a Bad Time.

We'll need to think about how we sanitise the data or warn the user when copy-pasting cross wiki.
Comment 26 James Forrester 2013-12-03 00:51:46 UTC
Re-prioritising down, as the main work is now complete.

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


Navigation
Links