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 Reverse-engineer surrounding with execCommand (#1377) 2021-11-18 19:18:39 +10:00
surround Fix some issues with new surround buttons (#1505) 2021-11-24 10:33:14 +10:00
BUILD.bazel Reverse-engineer surrounding with execCommand (#1377) 2021-11-18 19:18:39 +10:00
index.ts Reverse-engineer surrounding with execCommand (#1377) 2021-11-18 19:18:39 +10:00
place-caret.ts Mathjax editor improvements (#1502) 2021-11-23 10:27:32 +10:00
tsconfig.json Reverse-engineer surrounding with execCommand (#1377) 2021-11-18 19:18:39 +10:00