anki/ts/editable
Henrik Giesel 8f8f3bd465
Insert symbols overlay (#2051)
* Add flag for enabling insert symbols feature

* Add symbols overlay directory

* Detect if :xy is inserted into editable

* Allow naive updating of overlay, and special handling of ':'

* First step towards better Virtual Element support

* Update floating to reference range on insert text

* Position SymbolsOverlay always on top or bottom

* Add a data-provider to emulate API

* Show correct suggestions in symbols overlay

* Rename to replacementLength

* Allow replacing via clicking in menu

* Optionally remove inline padding of Popover

* Hide Symbols overlay on blur of content editable

* Add specialKey to inputHandler and generalize how arrow movement is detected

- This way macOS users can use Ctrl-N to mean down, etc.

* Detect special key from within SymbolsOverlay

* Implement full backwards search while typing

* Allow navigating symbol menu and accepting with enter

* Add some entries to data-provider

* Satisfy eslint

* Generate symbolsTable from sources

* Use other github source, allow multiple names

In return, symbol must be unique

* Automatically scroll in symbols dropdown

* Use from npm packages rather than downloading from URL

* Remove console.log

* Remove print

* Add pointerDown event to input-handler

- so that SymbolsOverlay can reset on field click

* Make tab do the same as enter

* Make font a bit smaller but increase relative icon size

* Satisfy type requirement of handlerlist

* Revert changing default size of DropdownItems

* Remove some now unused code for bootstrap dropdowns
2022-09-10 18:46:59 +10:00
..
BUILD.bazel Use same config for editor and reviewer Mathjax (#1865) 2022-05-13 13:23:35 +10:00
content-editable.ts Insert symbols overlay (#2051) 2022-09-10 18:46:59 +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 Redesign Qt widgets with stylesheets (#2050) 2022-09-08 20:44:38 +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 Use WithFloating for MathjaxOverlay (#2011) 2022-09-05 17:20:00 +10:00
Mathjax.svelte Use WithFloating for MathjaxOverlay (#2011) 2022-09-05 17:20:00 +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