guardian/scribe

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

Open

#206 aperta il 20 giu 2014

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)JavaScript (265 fork)batch import
browser inconsistencybughelp wantedpatch needed

Metriche repository

Star
 (3516 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor