Steps to reproduce:
- Open a page with VE which has link in it
- Place the cursor at the beginning of the link text
- Now click on the remove link icon
Observed Result:
It does not remove the link from the text.
| Ryasmeen | |
| Dec 1 2015, 12:25 AM |
| F3035236: Screen Shot 2015-11-30 at 4.25.01 PM.png | |
| Dec 1 2015, 12:25 AM |
Steps to reproduce:
Observed Result:
It does not remove the link from the text.
| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| Annotation context items: expand the selection if no annotations | VisualEditor/VisualEditor | master | +12 -0 |
Delving into this, in ve.ui.AnnotationContextItem.prototype.onClearButtonClick, fragment is correct in both circumstances but fragment.getAnnotations( true ) doesn't return the right thing. I guess ve.dm.SurfaceFragment#getAnnotations needs to be updated to have a method of asking if it's "inside" or "outside" when at the start of a link/other 'cursored' annotation? @dchan?
Change 259216 had a related patch set uploaded (by DLynch):
Annotation context items: expand the selection if no annotations
Change 259216 merged by jenkins-bot:
Annotation context items: expand the selection if no annotations