Anki/ts/editor/rich-text-input
Henrik Giesel c1e54e6842
Fix field description (#1923)
* Remove most of the original description placeholder implementation

* Move description showing logic to RichTextInput

- there is no need to propagate it to ContentEditable

* Remove the @html from field-description

This actually worked - however I removed it in case we'd rather offer
markdown support or something else in the future.

* Do not remove placeholder already on focus

- Other editors do not do it either

* Hide via hidden attribute instead of unmounting

* Do not pass content to ContentEditable

* Sort imports

* Change placeholder text color (dae)

In day mode, slightly-grey is almost indistinguishable from black
(at least on the monitor I'm using here)
2022-06-22 09:53:10 +10:00
..
CustomStyles.svelte Separate input components into their own directories / Remove WithShortcut (#1613) 2022-01-24 11:43:09 +10:00
index.ts Use eslint for sorting our imports (#1637) 2022-02-04 18:36:34 +10:00
normalizing-node-store.ts Fix infinite update loop in editor with invalid input HTML (#1761) 2022-03-31 11:17:13 +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 Fix field description (#1923) 2022-06-22 09:53:10 +10:00
RichTextStyles.svelte Fix field description (#1923) 2022-06-22 09:53:10 +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 Instead of transforming to {\lt}, transform to < (#1818) 2022-04-25 13:42:54 +10:00