Henrik Giesel
|
76f432c94f
|
Allow non-null assertion in focus-handlers
|
2021-07-03 01:14:59 +02:00 |
|
Henrik Giesel
|
1968972c1c
|
Move selection into editable, if it's not there after focus
|
2021-07-03 01:00:52 +02:00 |
|
Damien Elmes
|
f4b15e1351
|
Merge pull request #1266 from hgiesel/renamelib
More uniform file naming
|
2021-07-02 09:31:52 +10:00 |
|
Henrik Giesel
|
db4cbfcb26
|
More uniform file naming
kebap-case for .ts, .scss, .html, and directories
|
2021-07-01 12:24:16 +02:00 |
|
Henrik Giesel
|
2680ffb969
|
Use better cloze button icon
|
2021-07-01 11:46:39 +02:00 |
|
Henrik Giesel
|
27335e1d33
|
Refactor WithDropdown to be more versatile and cause less bugs
|
2021-06-30 14:01:33 +02:00 |
|
Damien Elmes
|
50e7d6ea00
|
disable cloze&math buttons in html mode
Following on from 35777bb0ca
Keeping them active seems to encourage users to experiment:
https://forums.ankiweb.net/t/cloze-deleting-html-svg/11011
|
2021-06-25 10:31:47 +10:00 |
|
Henrik Giesel
|
1599526726
|
Make Codable abstract more over its textarea v codemirror when using fieldHTML
|
2021-06-24 19:55:50 +02:00 |
|
Henrik Giesel
|
9f0343f591
|
Make EditingArea intialize this.fieldHTML, not Editable.fieldHTML
|
2021-06-24 19:15:07 +02:00 |
|
Henrik Giesel
|
e5709ec90c
|
Adapt use of createDropdown for editor buttons
|
2021-06-22 17:31:06 +02:00 |
|
Henrik Giesel
|
191684c1b0
|
Rename SectionItem to just Item and use across option sections
|
2021-06-21 17:02:46 +02:00 |
|
Henrik Giesel
|
d2360869b3
|
Add Section and SectionItem for the deckoptions
|
2021-06-21 17:01:44 +02:00 |
|
Henrik Giesel
|
0061d61db5
|
Generalize ButtonToolbarItem to SectionItem
|
2021-06-21 17:01:42 +02:00 |
|
Henrik Giesel
|
b1414c188d
|
Add type hint in WithColorHelper
|
2021-06-19 16:31:35 +02:00 |
|
Henrik Giesel
|
0a7697596d
|
Make Color Pickers also format with colors
|
2021-06-19 16:27:09 +02:00 |
|
Damien Elmes
|
22f073d29c
|
Merge pull request #1242 from hgiesel/codable
In-line HTML-Editing for Editor
|
2021-06-18 17:18:35 +10:00 |
|
Henrik Giesel
|
c74d486120
|
Satisfy svelte_check
|
2021-06-18 03:12:02 +02:00 |
|
Henrik Giesel
|
44ed54a20f
|
Remove components from editor BUILD.bazel again
|
2021-06-18 02:59:45 +02:00 |
|
Henrik Giesel
|
519cc78c66
|
Disable function dropdown when no field selected
|
2021-06-18 02:51:42 +02:00 |
|
Henrik Giesel
|
8ca7dc589c
|
Satisfy linter
|
2021-06-18 02:44:15 +02:00 |
|
Henrik Giesel
|
f06b709a66
|
Make text wrapper buttons work with Codable
|
2021-06-18 02:33:56 +02:00 |
|
Henrik Giesel
|
35777bb0ca
|
Disable Media button for Codable, but keep wrapping and cloze key for now
|
2021-06-18 02:02:01 +02:00 |
|
Henrik Giesel
|
5992910fe8
|
Disable ColorButtons for Codable
|
2021-06-18 01:44:15 +02:00 |
|
Henrik Giesel
|
2de2e7ccf5
|
Allow Tab and Shift+Tab on Codable
|
2021-06-18 01:32:46 +02:00 |
|
Henrik Giesel
|
dee7be2323
|
Disable FormatBlock buttons for Codable
|
2021-06-18 01:17:43 +02:00 |
|
Henrik Giesel
|
dd1344d7f0
|
Disable Bold button in Codable
|
2021-06-18 00:27:07 +02:00 |
|
Henrik Giesel
|
0315aeefd7
|
Make different onPaste behavior for Editable and Codable
|
2021-06-17 23:12:15 +02:00 |
|
Henrik Giesel
|
32b3702d3c
|
Have correct enter behavior in for Editable and Codable
|
2021-06-17 22:02:06 +02:00 |
|
Henrik Giesel
|
e773d75f6d
|
Add autoclosetag addon for CodeMirror
|
2021-06-17 21:45:11 +02:00 |
|
Henrik Giesel
|
b1414376e4
|
Make it so you don't have to close the HTML mode for html to be written back
|
2021-06-17 21:36:56 +02:00 |
|
Henrik Giesel
|
bf9cbcd527
|
Only toggle the current field, not all
|
2021-06-17 20:57:20 +02:00 |
|
Henrik Giesel
|
7687a030ff
|
Make Codable enter behavior the same as Editable
|
2021-06-17 20:47:33 +02:00 |
|
Henrik Giesel
|
7530121314
|
Match and fold tags
|
2021-06-17 20:27:34 +02:00 |
|
Henrik Giesel
|
44e2560c8b
|
Make editable hide correctly when activating codable
|
2021-06-17 19:08:14 +02:00 |
|
Henrik Giesel
|
df32f60029
|
Successfully add monokai theming
|
2021-06-17 18:36:12 +02:00 |
|
Henrik Giesel
|
751747a693
|
Make DOMParser correctly return innerHTML
|
2021-06-17 17:52:27 +02:00 |
|
Henrik Giesel
|
d2b697fc1b
|
Make Codable correctly update the editable state and its button
|
2021-06-17 17:49:50 +02:00 |
|
Henrik Giesel
|
6ce9d18e4c
|
Apply the Monokai theme
|
2021-06-17 17:18:00 +02:00 |
|
Henrik Giesel
|
e895f85cbc
|
Setup toggleHtmlEdit on editingArea
|
2021-06-17 17:08:33 +02:00 |
|
Henrik Giesel
|
c6cee3bf31
|
Connect HtmlEditButton to codable
|
2021-06-17 15:30:05 +02:00 |
|
Henrik Giesel
|
48c8f89a11
|
Display CodeMirror in editingArea
|
2021-06-17 14:44:03 +02:00 |
|
Henrik Giesel
|
96e549e0d4
|
Add codable element
|
2021-06-17 13:46:25 +02:00 |
|
Damien Elmes
|
532ac8b511
|
Merge pull request #1230 from RumovZ/fields-check
Check for misplaced or missing clozes when adding and in the editor
|
2021-06-17 21:26:16 +10:00 |
|
RumovZ
|
be54c4352a
|
Merge cloze hint divs into one
|
2021-06-15 08:43:18 +02:00 |
|
RumovZ
|
3572f0a0c6
|
Add editor hints for cloze errors
|
2021-06-12 17:35:40 +02:00 |
|
hikaru-y
|
d6370d13bf
|
Disable color picker buttons when a field is not focused
|
2021-06-11 23:36:06 +09:00 |
|
Damien Elmes
|
33cecaa618
|
use different toolbar size on Mac
see discussion on 8c8bf26488
|
2021-06-05 11:28:36 +10:00 |
|
Damien Elmes
|
8c8bf26488
|
try toolbar size of 1.85rem
https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/97
|
2021-06-04 15:11:34 +10:00 |
|
Henrik Giesel
|
973cd59b29
|
Make ColorPicker buttons halfwidth
|
2021-05-31 00:17:06 +02:00 |
|
Henrik Giesel
|
6d72e7bc49
|
Implement new ColorPicker
|
2021-05-30 22:58:40 +02:00 |
|