Anki/ts/editor/plain-text-input
Matthias Metelka d110c4916c
Introduce setting to collapse field by default (#1990)
* Introduce setting to collapse field by default

* Fix schema order

* Change wording from adjective to imperative

sounds a bit less clunky

* Update rslib/src/notetype/schema11.rs (dae)

* Keep settings in single column

* Add back Toggle Visual Editor string

* Add RichTextBadge component and show it conditionally

* Reverse input order depending on default setting

* Make PlainTextInput border-radius responsive to toggle states

* Prevent first Collapsible transition differently

* Focus inputs after Collapsible transition

The double tick calls are just a temporary solution until I find the exact moment an input is focusable again.

* Use requestAnimationFrame to await focusable state

Note: Svelte tick doesn't seem to work in this scenario.
2022-08-31 23:34:39 +10:00
..
index.ts Refactor how toolbar buttons get to surround within editor fields (#1931) 2022-08-15 13:34:16 +10:00
PlainTextInput.svelte Introduce setting to collapse field by default (#1990) 2022-08-31 23:34:39 +10:00
remove-prohibited.ts Allow style tags in HTML editor (#1870) 2022-05-17 16:37:20 +10:00
transform.ts Fix infinite update loop in editor with invalid input HTML (#1761) 2022-03-31 11:17:13 +10:00