Last modified: 2012-07-06 02:09:58 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 T39980, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37980 - VisualEditor: Cut all text, re-paste it: broken editor
VisualEditor: Cut all text, re-paste it: broken editor
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
Data Model (Other open bugs)
unspecified
All All
: Unprioritized major
: VE-deploy-2012-07-09
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-27 04:21 UTC by Nicolas Raoul
Modified: 2012-07-06 02:09 UTC (History)
4 users (show)

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


Attachments

Description Nicolas Raoul 2012-06-27 04:21:09 UTC
Steps to reproduce:
1) Go to http://www.mediawiki.org/wiki/Special:VisualEditorSandbox
2) Press CTRL-A (or select all text with the mouse)
3) Press CTRL-X to cut all this text. The text disappears.
4) Press CTRL-V to reinsert the text.

PROBLEM1: Text is not reinserted, the page stays blank.
PROBLEM2: One can enter text, but not new lines. Pressing "Enter" does not have any effect.

Tested on Ubuntu 2012.04, Firefox 13.0.1
Comment 1 Nicolas Raoul 2012-06-27 04:23:35 UTC
On Ubuntu 2012.04, Chromium 18.0.1025.151: Only PROBLEM1 occurs, PROBLEM2 does not occur.
Comment 2 James Forrester 2012-06-27 22:27:32 UTC
Confirm problem 1 (but not 2) on Chrome 19/Mac and both problems on Firefox 13/Mac.
Comment 3 Nicolas Raoul 2012-06-28 23:30:39 UTC
The component below does not have this bug:
http://html5demos.com/contenteditable/
Comment 4 Christian Williams 2012-07-02 21:33:25 UTC
This looks like a bug in fixupInsertion. When the entire contents is cut, only paragraph and /paragraph are in the documentModel. Pasting more than 2 paragraphs will error. 

Steps to reproduce:
1) Create a document with 3 simple paragraphs.
2) Ctl-A
3) Ctl-X
4) Ctl-V
Comment 5 Roan Kattouw 2012-07-05 20:00:16 UTC
(In reply to comment #4)
> This looks like a bug in fixupInsertion. When the entire contents is cut, only
> paragraph and /paragraph are in the documentModel. Pasting more than 2
> paragraphs will error. 
> 
This fixupInsertion issue is fixed in https://gerrit.wikimedia.org/r/14398 . This fixes problem #1, which occurred in all browsers. Problem #2 is a Firefox-specific selection issue, so I'm filing a separate bug for that and closing this one as fixed.
Comment 6 Nicolas Raoul 2012-07-06 02:07:33 UTC
> Problem #2 is a Firefox-specific selection issue, so I'm filing a separate bug for that and closing this one as fixed.

Roan, could you please tell us the identifier of the new bug report you created?
Comment 7 Roan Kattouw 2012-07-06 02:09:58 UTC
(In reply to comment #6)
> > Problem #2 is a Firefox-specific selection issue, so I'm filing a separate bug for that and closing this one as fixed.
> 
> Roan, could you please tell us the identifier of the new bug report you
> created?

Sorry, meant to do that but forgot. I filed bug 38207 for it and later found it was a duplicate of bug 38037.

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


Navigation
Links