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 |
|
Henrik Giesel
|
48cc9c602f
|
Add justify and indentation menu
|
2021-04-16 15:26:49 +02:00 |
|
Henrik Giesel
|
5414d9f826
|
Add ol and ul buttons, rename previous format to formatInline
|
2021-04-16 03:46:37 +02:00 |
|
Henrik Giesel
|
4a8a051999
|
Satisfy ./script/svelte-check
|
2021-04-16 03:10:39 +02:00 |
|
Damien Elmes
|
a32bb47b9b
|
quiet esbuild output and format file
|
2021-04-16 10:27:09 +10:00 |
|
Henrik Giesel
|
0f01e421be
|
Solve the race conditions of button insertion by operating on promises in EditorToolbar
|
2021-04-16 02:04:38 +02:00 |
|
Henrik Giesel
|
ccc48bd1d7
|
Abandon btn-secondary and btn-light in favor our own definitions btn-night and btn-day
|
2021-04-15 18:35:46 +02:00 |
|
Henrik Giesel
|
b0885ef0cd
|
Add license headers
|
2021-04-15 15:59:52 +02:00 |
|