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

            Bug ID: 72390
           Summary: Pasting in text containing a tab character causes VE
                    to scroll to the top
           Product: VisualEditor
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
       Web browser: ---
   Mobile Platform: ---

Intention:
Paste bibliographic information from Google books

Steps to Reproduce:
1. Almost any book will do for this, but to pick an example
http://books.google.co.uk/books?id=VYvS7MyaEE8C
2. Scroll down to the "Bibliographic information" section at the end
3. Select everything between the name of the publisher and the first ISBN
number.  Ignoring whitespace, you should have something like "Academic Press,
2012 ISBN 0123914213" on the clipboard. It is important that the selection
spans at least two lines and includes at least one tab character.  Other than
that it is not vital what infomation from the bib is selected, but this is what
I would normally select and gives me problems.
4. Choose a Wikipedia page with a substantial amount of text, or create one in
sandbox
5. Launch VE and scroll down far enough so the top of the article is no longer
visible.
6. Start a new line and type some text such as "Author name, Book Title, "
(this step is essential)
7. Paste the clipboard contents immediately at the end of this line (this
currently has to be done with right-click paste rather than CTrl-V due to
another bug, but this was still happening before Ctrl-V got broke)


Actual Results:  
The part of the article you are working on (this will usually be the references
or bibliography section right at the end of the article) disappears from sight
as VE scrolls right to the top of the article.

Expected Results:  
The focus should stay at the pasting insertion point.

Scrolling to the top also occurs when a tab is typed from the keyboard, which I
assume is related.  Possibly this is meant to be a feature, but it is not a
very helpful one - I find myself typing tabs while in tables expecting to tab
to the next cell as is common on internet forms.  I know VE doesn't do this,
but the expected behaviour is so ingrained I keep getting caught out.  In any
case, a tab pasted in with text doing this is definitely a bug.

Reproducible: Didn't try

The bug is quite intrusive to me, I am frequently pasting in source
bibliographic information, almost every session.

-- 
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