Anki/ts/editor
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
..
editor-toolbar Insert symbols overlay (#2051) 2022-09-10 18:46:59 +10:00
image-overlay Use WithFloating for MathjaxOverlay (#2011) 2022-09-05 17:20:00 +10:00
mathjax-overlay Insert symbols overlay (#2051) 2022-09-10 18:46:59 +10:00
plain-text-input Use WithFloating for MathjaxOverlay (#2011) 2022-09-05 17:20:00 +10:00
rich-text-input Use WithFloating for MathjaxOverlay (#2011) 2022-09-05 17:20:00 +10:00
symbols-overlay Insert symbols overlay (#2051) 2022-09-10 18:46:59 +10:00
base.ts Use eslint for sorting our imports (#1637) 2022-02-04 18:36:34 +10:00
BrowserEditor.svelte Use eslint for sorting our imports (#1637) 2022-02-04 18:36:34 +10:00
BUILD.bazel Insert symbols overlay (#2051) 2022-09-10 18:46:59 +10:00
change-timer.ts Add ChangeTimer.prototype.fireImmediately 2021-09-16 14:47:05 +02:00
ClozeButtons.svelte Implement cloze buttons in Mathjax editor (#1860) 2022-05-13 13:04:20 +10:00
code-mirror.ts Disable auto-closing of HTML tags 2022-08-16 12:43:43 +10:00
CodeMirror.svelte Use WithFloating for MathjaxOverlay (#2011) 2022-09-05 17:20:00 +10:00
CollapseBadge.svelte Field redesign (#2002) 2022-08-19 10:02:28 +10:00
DecoratedElements.svelte Fix infinite update loop in editor with invalid input HTML (#1761) 2022-03-31 11:17:13 +10:00
destroyable.ts Fix Cloze button (#1504) 2021-11-24 10:25:24 +10:00
DuplicateLink.svelte Use eslint for sorting our imports (#1637) 2022-02-04 18:36:34 +10:00
EditingArea.svelte Field redesign (#2002) 2022-08-19 10:02:28 +10:00
editor-base.scss Add EditorField export (#1915) 2022-06-20 12:07:07 +10:00
EditorField.svelte Use WithFloating for MathjaxOverlay (#2011) 2022-09-05 17:20:00 +10:00
FieldDescription.svelte Use WithFloating for MathjaxOverlay (#2011) 2022-09-05 17:20:00 +10:00
Fields.svelte Use WithFloating for MathjaxOverlay (#2011) 2022-09-05 17:20:00 +10:00
FieldsEditor.svelte Use WithFloating for MathjaxOverlay (#2011) 2022-09-05 17:20:00 +10:00
FieldState.svelte Field redesign (#2002) 2022-08-19 10:02:28 +10:00
FocusTrap.svelte Add some component comment (#1779) 2022-04-19 17:20:26 +10:00
FrameElement.svelte Use eslint for sorting our imports (#1637) 2022-02-04 18:36:34 +10:00
HandleBackground.svelte Use WithFloating for MathjaxOverlay (#2011) 2022-09-05 17:20:00 +10:00
HandleControl.svelte Use WithFloating for MathjaxOverlay (#2011) 2022-09-05 17:20:00 +10:00
HandleLabel.svelte Use WithFloating for MathjaxOverlay (#2011) 2022-09-05 17:20:00 +10:00
helpers.ts Introduce setting to collapse field by default (#1990) 2022-08-31 23:34:39 +10:00
icons.ts Field redesign (#2002) 2022-08-19 10:02:28 +10:00
index_browser.ts Use eslint for sorting our imports (#1637) 2022-02-04 18:36:34 +10:00
index_creator.ts Use eslint for sorting our imports (#1637) 2022-02-04 18:36:34 +10:00
index_reviewer.ts Use eslint for sorting our imports (#1637) 2022-02-04 18:36:34 +10:00
LabelContainer.svelte Use WithFloating for MathjaxOverlay (#2011) 2022-09-05 17:20:00 +10:00
LabelName.svelte Editor Field Descriptions (#1476) 2021-11-06 09:42:48 +10:00
legacy.scss Redesign Qt widgets with stylesheets (#2050) 2022-09-08 20:44:38 +10:00
MathjaxElement.svelte Fix infinite update loop in editor with invalid input HTML (#1761) 2022-03-31 11:17:13 +10:00
NoteCreator.svelte Field redesign (#2002) 2022-08-19 10:02:28 +10:00
NoteEditor.svelte Insert symbols overlay (#2051) 2022-09-10 18:46:59 +10:00
Notification.svelte Translate Editor entirely to Svelte (#1403) 2021-10-18 22:01:15 +10:00
old-editor-adapter.ts Plaintext import/export (#1850) 2022-06-01 20:26:16 +10:00
PlainTextBadge.svelte Field redesign (#2002) 2022-08-19 10:02:28 +10:00
PreviewButton.svelte Use eslint for sorting our imports (#1637) 2022-02-04 18:36:34 +10:00
ReviewerEditor.svelte Use eslint for sorting our imports (#1637) 2022-02-04 18:36:34 +10:00
RichTextBadge.svelte Introduce setting to collapse field by default (#1990) 2022-08-31 23:34:39 +10:00
StickyBadge.svelte Field redesign (#2002) 2022-08-19 10:02:28 +10:00
surround.ts Last polishes for Surrounder class (#2017) 2022-08-17 16:00:37 +10:00
tsconfig.json Insert symbols overlay (#2051) 2022-09-10 18:46:59 +10:00