Last modified: 2012-10-29 18:08:15 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 T43055, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 41055 - VisualEditor: Pasting text doesn't work
VisualEditor: Pasting text doesn't work
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
ContentEditable (Other open bugs)
unspecified
All All
: Unprioritized normal
: VE-deploy-2012-10-29
Assigned To: Christian Williams
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-15 22:21 UTC by Nikola Smolenski
Modified: 2012-10-29 18:08 UTC (History)
8 users (show)

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


Attachments

Description Nikola Smolenski 2012-10-15 22:21:39 UTC
I'm testing on mediawiki.org but am creating a bug report since these haven't been mentioned before so I don't believe they've been fixed in git.

If I try to paste some text in the editor, the paragraphs in it get stuck together, and it gets '↵' character inserted periodically, at places not corresponding to any line breaks in the text. Example:

If you want your user to be able to configure your extension, you'll ↵need to provide one or more configuration variables. It is a good idea ↵to give those variables a unique name. They should also follow MediaWiki↵ naming conventions

This happens both with pasting with Ctrl+v and with mouse. Firefox 16.0.1 on Windows XP SP 2.
Comment 1 Christian Williams 2012-10-17 05:15:30 UTC
I can't reproduce this on Firefox. Can you give me more details about the type of content you're pasting and where you're pasting it? For example, "I'm copying a couple paragraphs from a normal HTML page and pasting it into a headline in the Visual Editor".
Comment 2 Nikola Smolenski 2012-10-17 07:34:08 UTC
I am copying the first three paragraphs from http://www.mediawiki.org/wiki/Manual:Developing_extensions#Making_your_extension_user_configurable (starting with "If you want your user to be able to configure" and ending with "configuration variables in your installation notes.") I am pasting by clicking in VisualEditor at the end of "answers to many of your questions." paragraph and pressing Ctrl+V.

If I paste the text in a text editor, and then copy that text and paste it in the VisualEditor, the paragraphs are merged together (with an empty string) but the '↵' character does not appear.

This also happens with Firefox 11.0 on Ubuntu 10.10. It does not happen with Opera 11.50 on Ubuntu 10.10.
Comment 3 Christian Williams 2012-10-18 23:02:55 UTC
Thanks for the additional detail. I found the problem and have committed a fix (https://gerrit.wikimedia.org/r/#/c/28628/). 

Since we don't have a HTML -> Linear Model converter, copy and paste from external sources will paste as plain text only, so the 3 paragraphs will end up collapsed. This is as-expected. There is another enhancement request (https://bugzilla.wikimedia.org/show_bug.cgi?id=33105) to better support pasting from external sources.

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


Navigation
Links