Henrik Giesel
|
74dad42df3
|
Use ButtonGroupItem for all buttons in editor
|
2021-05-07 02:03:55 +02:00 |
|
Henrik Giesel
|
f724b45ae1
|
Add hiding functionality in ButtonGroup
|
2021-05-07 02:03:55 +02:00 |
|
Henrik Giesel
|
da5756822f
|
Add API for adding new buttons, updating existing ones in ButtonGroup
|
2021-05-07 02:03:55 +02:00 |
|
Henrik Giesel
|
5f8f4c06f8
|
Fix issue with dropdowns
|
2021-05-07 02:03:55 +02:00 |
|
Henrik Giesel
|
deafb0925c
|
Add .dropdown-menu class to DropdownMenu
|
2021-05-07 02:03:55 +02:00 |
|
Henrik Giesel
|
099325f407
|
Add back ColorButtons
|
2021-05-07 02:03:55 +02:00 |
|
Henrik Giesel
|
af7b1f7d7f
|
Activate FormatBlockButtons
|
2021-05-07 02:03:55 +02:00 |
|
Henrik Giesel
|
805ef26e20
|
Add all format inline buttons
|
2021-05-07 02:03:55 +02:00 |
|
Henrik Giesel
|
35267f30c9
|
Export module functions from EditorToolbar
|
2021-05-07 02:03:55 +02:00 |
|
Henrik Giesel
|
e7706bac6d
|
Refactor {CommandIcon,Icon,Square}Button into IconButton and WithState
|
2021-05-07 02:03:55 +02:00 |
|
Henrik Giesel
|
76ea48fade
|
Make StickyBar flex
|
2021-05-07 02:03:55 +02:00 |
|
Henrik Giesel
|
45c52f75aa
|
Translate ts files in ts/editor to svelte files
|
2021-05-07 02:03:55 +02:00 |
|
Henrik Giesel
|
8238ec5727
|
Rename editor-toolbar to components
|
2021-05-07 02:03:55 +02:00 |
|
Henrik Giesel
|
1515e07ea6
|
Add StickyBar.svelte WithTheming.svelte
|
2021-05-07 02:03:55 +02:00 |
|
Henrik Giesel
|
138e69bcf1
|
Move Notetype buttons to using slots instead of dynamic components
|
2021-05-07 02:03:55 +02:00 |
|
Henrik Giesel
|
a51eb42e7b
|
Simplify structure of EditorToolbar and ButtonGroup in editor HTML file
|
2021-05-07 02:03:55 +02:00 |
|
Damien Elmes
|
a24456d96f
|
fix missing keyboard modifier translations on Linux/Windows
https://forums.ankiweb.net/t/card-browser-hotkeys-semi-broken/9815
|
2021-05-07 09:30:06 +10:00 |
|
Henrik Giesel
|
b0988e43e1
|
Move EditorToolbar API into EditorToolbar.svelte
|
2021-04-25 19:15:00 +02:00 |
|
Henrik Giesel
|
a21a4d330b
|
Initialize editor toolbar via function, not web component
|
2021-04-25 18:32:01 +02:00 |
|
Henrik Giesel
|
438fcae263
|
Add addMenu and updateMenu, avoid using {buttons,menus}Promise outside of class
|
2021-04-24 01:08:55 +02:00 |
|
Henrik Giesel
|
9346e007c9
|
Add mostly working addcards topbar
|
2021-04-24 00:00:32 +02:00 |
|
Henrik Giesel
|
e66edd3887
|
Reduce typing overhead in ts/editor-toolbar/index.ts and export buttonGroup
|
2021-04-23 19:05:43 +02:00 |
|
Henrik Giesel
|
aebaaf1a70
|
Add IterableToolbarItem interface for easier typing
|
2021-04-23 18:53:52 +02:00 |
|
Henrik Giesel
|
59f0a2dd70
|
Make dynamicComponents usable for addons, rather than the components directly
rawButton({ html: ... })
instead of
{ component: RawButton, html: ... }
|
2021-04-23 16:43:36 +02:00 |
|
Damien Elmes
|
61dfa02b88
|
update remaining anki/ references
|
2021-04-23 10:16:40 +10:00 |
|
Henrik Giesel
|
31eaeef09b
|
Rename anki/ to lib/ for export
import _ from "anki/x";
will become
import _ from "lib/x";
to fit the directory name.
|
2021-04-23 10:02:28 +10:00 |
|
Henrik Giesel
|
d4e6fe6a34
|
Prefer optionalModifiers over register multiple shortcuts
|
2021-04-22 18:15:25 +02:00 |
|
Henrik Giesel
|
4ebad6f173
|
Add optionalModifiers parameter to registerShortcut
|
2021-04-22 17:28:38 +02:00 |
|
Henrik Giesel
|
0abcb86007
|
Use registerShortcut in inputHandlers + Avoid focus on color picker
|
2021-04-22 15:09:09 +02:00 |
|
Henrik Giesel
|
469c138ec1
|
Add shortcut labels for ColorPicker and Latex items
|
2021-04-22 14:35:44 +02:00 |
|
Henrik Giesel
|
e68d019b19
|
Add better better shortcutLabel support for buttons
|
2021-04-22 14:18:48 +02:00 |
|
Henrik Giesel
|
ffb0fd67e5
|
Add editing fluent strings without attached keyboard shortcuts
|
2021-04-22 13:38:37 +02:00 |
|
Henrik Giesel
|
3cbddf3e8c
|
Move up cloze id
|
2021-04-22 03:37:01 +02:00 |
|
Henrik Giesel
|
7ab5f736df
|
Move other buttons to WithShortcut
|
2021-04-22 03:25:31 +02:00 |
|
Henrik Giesel
|
b0ddae0f6c
|
Add first shortcuts for bold, italic, underline, removeFormat
|
2021-04-22 02:37:04 +02:00 |
|
Henrik Giesel
|
b66699355c
|
Fix isBlockElement()
|
2021-04-21 14:40:16 +02:00 |
|
Henrik Giesel
|
099ca563e3
|
Remove paragraph button
|
2021-04-21 14:36:24 +02:00 |
|
Henrik Giesel
|
ae801729ec
|
Prefer exec over matchAll
|
2021-04-21 14:18:44 +02:00 |
|
Henrik Giesel
|
18efdcac67
|
Gather editor-toolbar svelte components into filegroup
|
2021-04-21 13:18:31 +02:00 |
|
Henrik Giesel
|
29fef178d8
|
Add copyright headers
|
2021-04-20 15:43:59 +02:00 |
|
Henrik Giesel
|
282d9df02e
|
Remove last ts-expect-error
|
2021-04-20 15:41:26 +02:00 |
|
Henrik Giesel
|
6e2f2fc3a6
|
Move toolbar initialization into toolbar.ts
|
2021-04-20 15:32:02 +02:00 |
|
Henrik Giesel
|
f11db5579e
|
Move dynamic component initialization logic from editor to editor-toolbar
|
2021-04-20 14:23:28 +02:00 |
|
Henrik Giesel
|
94eb3af662
|
Improve behavior of paragraph command and add tooltip
|
2021-04-20 13:46:01 +02:00 |
|
Henrik Giesel
|
973b7008b7
|
Make indent outdent only work for list items
+ make paragraph show its active state
|
2021-04-20 13:44:44 +02:00 |
|
Henrik Giesel
|
5e978b28d4
|
Move button implementations from editor-toolbar to editor
|
2021-04-20 13:44:44 +02:00 |
|
Henrik Giesel
|
93136030e9
|
Include editor-toolbar as a library in editor
|
2021-04-20 13:44:44 +02:00 |
|
Henrik Giesel
|
85ea209d06
|
Generalize commandIconButton functionality of setting active state
|
2021-04-20 13:44:44 +02:00 |
|
Henrik Giesel
|
3adcad4ca3
|
Don't use <br>s when inside of paragraph
|
2021-04-20 13:44:44 +02:00 |
|
Henrik Giesel
|
ece4f75592
|
Generalize inListItem to getAnchorElement
|
2021-04-20 13:44:43 +02:00 |
|