VisualEditor: Link inspector in a slug can select content in the previous or following paragraphs
Closed, ResolvedPublic


If the cursor is in a slug and you press the link button, the selection jumps to the nearest content - which crosses out of the local <p> and into the <p> beforehand or afterwards (whoops).

Link inspector should detect that it is in a slug and not attempt to mangle the selection with nearestContentOffset, but just trigger with a 'blank' selection.

Version: unspecified
Severity: normal
See Also:

bzimport set Reference to bz50446.
Jdforrester-WMF created this task.Via LegacyJun 30 2013, 6:15 AM
Jdforrester-WMF added a comment.Via ConduitJun 30 2013, 6:29 AM

As a follow-up, if you have <start of document> <block slug> <block slug> <block slug> <block slug> <p> in a document, and have the cursor in the second slug, pressing Ctrl+K will move the selection to the top of the document and put the contents there (whee); in the third or fourth, to the first word of the <p>. Not great.

Jdforrester-WMF added a comment.Via ConduitAug 30 2013, 6:51 PM

This was fixed by gerrit 81437.

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.