VisualEditor: Make it clearer that the clear formatting button does something (clears pre-annotations) if any are set
Closed, ResolvedPublic


In the visual editor, the button to remove formatting activates if the cursor is placed on a formatted (bold or italic) character. However clicking the button has no effect unless text is selected.

Either the button should be disabled when no text is selected, or clicking it when no text is selected should have an effect (probably remove formatting from the current word).

Version: unspecified
Severity: normal

bzimport set Reference to bz51756.
Thryduulf created this task.Via LegacyJul 20 2013, 6:06 PM
Krinkle added a comment.Via ConduitDec 12 2013, 3:59 AM

Although the interface doesn't clearly indicate this, when the cursor is inside bold text, the toolbar shows "Bold" active. When you then click "Clear formatting", nothing inside the document will change (since no text is selected) however it does affect text entered from this point on.

Basically when your cursor is inside or against bold text, you'd expect text entered after it will also be bold. Clearing formatting at that point means it will unbold your cursor (if you know what I mean).

Jdforrester-WMF added a comment.Via ConduitMar 20 2014, 11:09 PM

This was fixed by only showing it as enabled when there's a pre-annnotation stack.

Add Comment