https://bugzilla.wikimedia.org/show_bug.cgi?id=52125

       Web browser: ---
            Bug ID: 52125
           Summary: VisualEditor - Using "Select all" (Ctrl+a) and
                    deleting the selected content afterwards leaves the
                    document uneditable.
           Product: VisualEditor
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Unprioritized
         Component: Editing Tools
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---

Tested on Firefox 22, Monobook and Vector skin. DOES NOT seem to affect Chrome
28 on Vector.

Steps to reproduce:
- Open the [[Olive Branch High School]] in the visual editor.
- Press CTRL+A to select everything on the page.
- Press Delete.

The result will be that the entire document becomes uneditable since there is
no editable section anymore that the user can click. The console will report
the error:
- "TypeError: node is null"

If you don't click anywhere else after pressing delete and start typing the
visual editor will behave extremely wonkey. I have seen behavior that ranged
from adding an unending steam of pawns to cursor focus jumping all over the
page. Additionally, the console will fill with a hailstorm of errors (Below is
just a small sample). 
- Error: ve.dm.Document.getNodeFromOffset(): offset -1 is out of bounds 
- TypeError: parent is null 
- Error: Unbalanced set of replace operations found 
- Error: Unbalanced input passed to document
- Error: Invalid retain length, cannot retain backwards

The above is likely just a consequence of the deletion . If i look at firebug's
output it seems that Ctrl+A will delete these lines:

<p data-parsoid="{&quot;dsr&quot;:[0,45,0,0]}" class="ve-ce-branchNode">
<span class="ve-ce-branchNode-slug
ve-ce-branchNode-inlineSlug">&#65279;</span></p>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to