VisualEditor: When dragging content, possible places to place content (e.g. a line before the head of a section, or at the end of the page) should appear when the content gets near
Closed, ResolvedPublic

Description

If you want to move an image to the start of a section in Visual Editor the logical course of action is to drag it to before the first character of the first word of the section.

A user of Firefox 21 reports this does not work at all, in my testing in Firefox 22 it appears to work only occasionally.

The counter-intuitive dragging the image to after the last character of the section title does work.


Version: unspecified
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=54756
https://bugzilla.wikimedia.org/show_bug.cgi?id=65883

bzimport set Reference to bz51666.
Thryduulf created this task.Via LegacyJul 19 2013, 9:13 AM
Qgil added a comment.Via ConduitSep 29 2013, 4:18 AM

There is a similar problem when you try to drag elements to the end of the editable content area - see Bug 54756.

Jdforrester-WMF added a comment.Via ConduitOct 8 2013, 3:31 PM

I'm a little confused as to what the request is here - do you feel that VisualEditor should, when dragging, magically create (and destroy) places to put the cursor, so you can drag content there? Assuming this, I've re-titled, but please correct if I've misunderstood.

We've deliberately decided against that in the past as a confusing behaviour, hence why there are all the extra blank lines ("slugs") for the "possible place you could put the cursor which aren't actually there" concept.

We could do this, but I'm not sure. Also, it adds behaviour that is possible using a mouse but not the keyboard (dragging is not done in the keyboard, instead cut/paste is), which is a little uncomfortable given the intent of VisualEditor.

We've considered adding an "outline mode" which would have all the slugs shown, possibly including these ones, and an "editor mode" where no slugs at all would show, which could be one alternative to this request.

Jdforrester-WMF added a comment.Via ConduitOct 8 2013, 3:35 PM
  • Bug 54756 has been marked as a duplicate of this bug. ***
gerritbot added a comment.Via ConduitJun 16 2014, 1:44 PM

Change 139674 had a related patch set uploaded by Esanders:
Block item drag and drop

https://gerrit.wikimedia.org/r/139674

Esanders added a comment.Via ConduitJun 17 2014, 11:38 AM
  • Bug 51292 has been marked as a duplicate of this bug. ***
gerritbot added a comment.Via ConduitJun 18 2014, 12:04 AM

Change 139674 merged by jenkins-bot:
Block item drag and drop

https://gerrit.wikimedia.org/r/139674

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.