anki/ts/editor/rich-text-input
Hikaru Y 9123821131
Refactor plain/rich text input toggling code; fix focus loss (#2479)
* Refactor plain/rich text input toggling code; fix focus loss

Fix:
- Issue where field loses focus when plain/rich text input is closed

Refactoring:
- Call refocus() inside the reactive statement in
  Plain/RichTextInput.svelte to eliminate the need for polling
  with requestAnimationFrame
- Introduce 'Flag' class
- Move 'on:toggle' handlers from inline to functions defined in
  the <script> section for better readability

* Improve code clarity based on feedback from code review

- Rename method and add comment to it
- Add 'private' access modifier to property
2023-04-22 16:08:25 +10:00
..
CustomStyles.svelte Separate input components into their own directories / Remove WithShortcut (#1613) 2022-01-24 11:43:09 +10:00
index.ts Refactor how toolbar buttons get to surround within editor fields (#1931) 2022-08-15 13:34:16 +10:00
normalizing-node-store.ts Re-enable formatting for .ts files 2022-11-28 09:33:04 +10:00
rich-text-resolve.ts Fix infinite update loop in editor with invalid input HTML (#1761) 2022-03-31 11:17:13 +10:00
RichTextInput.svelte Refactor plain/rich text input toggling code; fix focus loss (#2479) 2023-04-22 16:08:25 +10:00
RichTextStyles.svelte Improved fix for open editors getting carried to different notetypes (#2422) 2023-03-08 19:22:02 +10:00
StyleLink.svelte Use eslint for sorting our imports (#1637) 2022-02-04 18:36:34 +10:00
StyleTag.svelte Use eslint for sorting our imports (#1637) 2022-02-04 18:36:34 +10:00
transform.ts Re-enable formatting for .ts files 2022-11-28 09:33:04 +10:00