Henrik Giesel
|
6d6c798ca3
|
Simplify structure of EditorToolbar and ButtonGroup in editor HTML file
|
2021-05-07 02:03:55 +02:00 |
|
Henrik Giesel
|
268adf1d03
|
Move EditorToolbar API into EditorToolbar.svelte
|
2021-04-25 19:15:00 +02:00 |
|
Henrik Giesel
|
f5fba15435
|
Initialize editor toolbar via function, not web component
|
2021-04-25 18:32:01 +02:00 |
|
Henrik Giesel
|
5709183fe1
|
Prefer slicing and splicing
|
2021-04-24 01:48:22 +02:00 |
|
Henrik Giesel
|
af5d7cc6a3
|
Fix typing typo
|
2021-04-24 01:15:16 +02:00 |
|
Henrik Giesel
|
53bb8c7b28
|
Add addMenu and updateMenu, avoid using {buttons,menus}Promise outside of class
|
2021-04-24 01:08:55 +02:00 |
|
Henrik Giesel
|
9f7a187d4a
|
Add mostly working addcards topbar
|
2021-04-24 00:00:32 +02:00 |
|
Henrik Giesel
|
baeaa29dae
|
Simplify Handling of margins and padding of ButtonGroup & ButtonDropdown
|
2021-04-23 22:22:53 +02:00 |
|
Henrik Giesel
|
9629d3201b
|
Simplify tag structure in ButtonGroup
|
2021-04-23 21:42:44 +02:00 |
|
Henrik Giesel
|
8ecd4f8c95
|
Add simple version of Chooser buttons
|
2021-04-23 21:25:44 +02:00 |
|
Henrik Giesel
|
48b7cb49f9
|
Make update algorithm in editor-toolbar/index.ts recursive
|
2021-04-23 20:50:09 +02:00 |
|
Henrik Giesel
|
6ae368ebac
|
Reduce typing overhead in ts/editor-toolbar/index.ts and export buttonGroup
|
2021-04-23 19:05:43 +02:00 |
|
Henrik Giesel
|
bda99ee0f1
|
Add IterableToolbarItem interface for easier typing
|
2021-04-23 18:53:52 +02:00 |
|
Henrik Giesel
|
7cd779063f
|
Fix regression from 70c3b51b0b
Negative indices were not treated correctly (as offset from end)
|
2021-04-23 18:21:03 +02:00 |
|
Henrik Giesel
|
d250d39d64
|
Add withLabel component
|
2021-04-23 17:20:52 +02:00 |
|
Henrik Giesel
|
4379f1e84f
|
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
|
aba8df7708
|
make return value match mergeTooltipAndShortcut() signature
|
2021-04-23 19:48:36 +10:00 |
|
Damien Elmes
|
70c3b51b0b
|
remove nested terneries and enable lint
@hgiesel would you mind quickly checking I've correctly captured
the logic here?
|
2021-04-23 13:00:18 +10:00 |
|
Damien Elmes
|
00f170dddc
|
update remaining anki/ references
|
2021-04-23 10:16:40 +10:00 |
|
Damien Elmes
|
8b4446d044
|
Merge pull request #1148 from hgiesel/updatetypescript
Update Typescript to 4.2.4
|
2021-04-23 09:48:34 +10:00 |
|
Henrik Giesel
|
dc10e6235d
|
Update eslint to 4.22.0
|
2021-04-22 19:19:39 +02:00 |
|
Henrik Giesel
|
22a07a3a58
|
Separate type import for WithShortcut
|
2021-04-22 18:19:09 +02:00 |
|
Henrik Giesel
|
5197e3b779
|
Prefer optionalModifiers over register multiple shortcuts
|
2021-04-22 18:15:25 +02:00 |
|
Henrik Giesel
|
7aaf7b7fe0
|
Add license headers
|
2021-04-22 16:49:30 +02:00 |
|
Henrik Giesel
|
f6ef4d43cb
|
Use registerShortcut in inputHandlers + Avoid focus on color picker
|
2021-04-22 15:09:09 +02:00 |
|
Henrik Giesel
|
8ca40369a7
|
Fix typo deregisters
|
2021-04-22 14:54:29 +02:00 |
|
Henrik Giesel
|
47809f6230
|
Add shortcut labels for ColorPicker and Latex items
|
2021-04-22 14:35:44 +02:00 |
|
Henrik Giesel
|
3cf7db8557
|
Add better better shortcutLabel support for buttons
|
2021-04-22 14:18:48 +02:00 |
|
Henrik Giesel
|
e95e78da9c
|
Add getPlatformString for making shortcuts to platform string
|
2021-04-22 13:04:24 +02:00 |
|
Henrik Giesel
|
d2ca94a29d
|
Move other buttons to WithShortcut
|
2021-04-22 03:25:31 +02:00 |
|
Henrik Giesel
|
85f89dc111
|
Add first shortcuts for bold, italic, underline, removeFormat
|
2021-04-22 02:37:04 +02:00 |
|
Henrik Giesel
|
dc5b13eeab
|
Use registerShortcut within WithShortcut
|
2021-04-22 01:15:38 +02:00 |
|
Henrik Giesel
|
5152dce7b8
|
Add WithShortcut
|
2021-04-22 01:15:38 +02:00 |
|
Henrik Giesel
|
72b33bf361
|
Gather editor-toolbar svelte components into filegroup
|
2021-04-21 13:18:31 +02:00 |
|
Henrik Giesel
|
731f9d109f
|
Move toolbar initialization into toolbar.ts
|
2021-04-20 15:32:02 +02:00 |
|
Henrik Giesel
|
37ea39f779
|
Move dynamic component initialization logic from editor to editor-toolbar
|
2021-04-20 14:23:28 +02:00 |
|
Henrik Giesel
|
893028b2df
|
Make indent outdent only work for list items
+ make paragraph show its active state
|
2021-04-20 13:44:44 +02:00 |
|
Henrik Giesel
|
9803bb19ca
|
Move button implementations from editor-toolbar to editor
|
2021-04-20 13:44:44 +02:00 |
|
Henrik Giesel
|
b1de095162
|
Include editor-toolbar as a library in editor
|
2021-04-20 13:44:44 +02:00 |
|
Henrik Giesel
|
e60e784152
|
Generalize commandIconButton functionality of setting active state
|
2021-04-20 13:44:44 +02:00 |
|
Henrik Giesel
|
fcb2ab28e3
|
Add paragraph button
|
2021-04-20 13:44:44 +02:00 |
|
Henrik Giesel
|
83d5d72777
|
Generalize inListItem to getAnchorElement
|
2021-04-20 13:44:43 +02:00 |
|
Henrik Giesel
|
b35f5cdae0
|
Hide ButtonDropdown when closed
Otherwise ul.{svelte-class} in ButtonGroup has higher priority then .show from Bootstrap
|
2021-04-19 14:47:10 +02:00 |
|
Damien Elmes
|
f869148d5e
|
Merge pull request #1134 from hgiesel/formatblock
Add block formatting options to Editor
|
2021-04-17 09:40:52 +10:00 |
|
Henrik Giesel
|
d66d229d15
|
Color ButtonDropdown background in var(--bg-color) regardless of theme
|
2021-04-16 18:36:54 +02:00 |
|
Henrik Giesel
|
caa052e37e
|
Make clearer which parts of ButtonGroup css are theming related
|
2021-04-16 18:24:43 +02:00 |
|
Henrik Giesel
|
b60f9cd05d
|
Change style for Dropdown{Menu,Item} to match Button{Group,Dropdown}
|
2021-04-16 18:14:09 +02:00 |
|
Henrik Giesel
|
f2e313664c
|
Adjust ButtonDropdown for night mode
|
2021-04-16 17:14:47 +02:00 |
|
Henrik Giesel
|
21dced4ae8
|
Mark indent / outdent as non activatable
|
2021-04-16 16:11:53 +02:00 |
|
Henrik Giesel
|
3eab17ed0f
|
Add Fluent translations
|
2021-04-16 16:08:00 +02:00 |
|