guardian/scribe

`underline` command is "enabled" when cursor is inside an <a> link

Open

#206 opened on Jun 20, 2014

View on GitHub
 (1 comment) (0 reactions) (0 assignees)JavaScript (265 forks)batch import
browser inconsistencybughelp wantedpatch needed

Repository metrics

Stars
 (3,516 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

It seems like the default "underline" command checks the enabled CSS of the current selection, rather than looking for an explicit <u> element.

We were able to fix this locally easily by overriding the default "underline" queryState() command to look for an explicit <u> tag instead of relying on the default behavior.

Contributor guide