anki/ts/domlib
Henrik Giesel 97b28398ea
Fix some issues with new surround buttons (#1505)
* Add a store to indicate whether input trigger is active

Button state is then indicated by: caretIsInBold XOR boldTriggerActive

* Fix surrounding where normalization is tripped up by empty text nodes

* Add failing test for unsurrounding

* Fix failing test

* prohibitOverlapse does not need to be active, if aboveEnd is null

* Reinsert Italic and Underline button

* Refactor find-adjacent to use sum types

* Simplify return value of normalizeAdjacent
2021-11-24 10:33:14 +10:00
..
location
surround Fix some issues with new surround buttons (#1505) 2021-11-24 10:33:14 +10:00
BUILD.bazel
index.ts
place-caret.ts Mathjax editor improvements (#1502) 2021-11-23 10:27:32 +10:00
tsconfig.json