anki/ts/editable
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
..
BUILD.bazel Use same config for editor and reviewer Mathjax (#1865) 2022-05-13 13:23:35 +10:00
content-editable.ts Allow using keyup with registerShortcut (#1755) 2022-03-29 09:28:44 +10:00
ContentEditable.svelte Fix field description (#1923) 2022-06-22 09:53:10 +10:00
decorated.ts Fix plain text (#1689) 2022-02-25 11:14:26 +10:00
editable-base.scss Fix custom CSS not being applied to scrollbars in night mode (#1525) 2021-12-05 08:20:42 +10:00
frame-element.ts Fix Mathjax sometimes being deleted even though it's not selected (#1696) 2022-02-27 17:58:01 +10:00
frame-handle.ts Fix cursor sometimes not being moved into mathjax editor (#1737) 2022-03-24 18:29:30 +10:00
icons.ts update to latest rules_nodejs & switch to ts_project 2021-10-01 12:52:53 +10:00
index.ts Change how resizable images work (#1859) 2022-05-13 12:57:07 +10:00
mathjax-element.ts Transform <br> in Mathjax to newlines (#1866) 2022-05-16 14:42:10 +10:00
Mathjax.svelte Instead of transforming to {\lt}, transform to &lt; (#1818) 2022-04-25 13:42:54 +10:00
mathjax.ts Switch editor to full MathJax package to fix broken autoloads 2022-05-21 14:01:38 +10:00
ResizableImage.svelte Change how resizable images work (#1859) 2022-05-13 12:57:07 +10:00
tsconfig.json Use same config for editor and reviewer Mathjax (#1865) 2022-05-13 13:23:35 +10:00