Henrik Giesel
|
7f7e5c2702
|
Execute Ctrl+C/V/X/A through execCommand in editor (so we can customize it)
|
2021-07-03 01:48:49 +02:00 |
|
Damien Elmes
|
c01c4b642b
|
Merge pull request #1266 from hgiesel/renamelib
More uniform file naming
|
2021-07-02 09:31:52 +10:00 |
|
Henrik Giesel
|
24af5bada3
|
More uniform file naming
kebap-case for .ts, .scss, .html, and directories
|
2021-07-01 12:24:16 +02:00 |
|
Henrik Giesel
|
982afca625
|
Use better cloze button icon
|
2021-07-01 11:46:39 +02:00 |
|
Henrik Giesel
|
6493adf7ca
|
Refactor WithDropdown to be more versatile and cause less bugs
|
2021-06-30 14:01:33 +02:00 |
|
Damien Elmes
|
18843e711d
|
disable cloze&math buttons in html mode
Following on from 8a07d3161d
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
|
4252898c78
|
Make Codable abstract more over its textarea v codemirror when using fieldHTML
|
2021-06-24 19:55:50 +02:00 |
|
Henrik Giesel
|
96e4e90a61
|
Make EditingArea intialize this.fieldHTML, not Editable.fieldHTML
|
2021-06-24 19:15:07 +02:00 |
|
Henrik Giesel
|
cedbc35850
|
Adapt use of createDropdown for editor buttons
|
2021-06-22 17:31:06 +02:00 |
|
Henrik Giesel
|
e030e6f656
|
Rename SectionItem to just Item and use across option sections
|
2021-06-21 17:02:46 +02:00 |
|
Henrik Giesel
|
c49ad009d0
|
Add Section and SectionItem for the deckoptions
|
2021-06-21 17:01:44 +02:00 |
|
Henrik Giesel
|
da076aa48e
|
Generalize ButtonToolbarItem to SectionItem
|
2021-06-21 17:01:42 +02:00 |
|
Henrik Giesel
|
05fa7daa97
|
Add type hint in WithColorHelper
|
2021-06-19 16:31:35 +02:00 |
|
Henrik Giesel
|
29d40fd4ab
|
Make Color Pickers also format with colors
|
2021-06-19 16:27:09 +02:00 |
|
Damien Elmes
|
039be57499
|
Merge pull request #1242 from hgiesel/codable
In-line HTML-Editing for Editor
|
2021-06-18 17:18:35 +10:00 |
|
Henrik Giesel
|
3320aecdda
|
Satisfy svelte_check
|
2021-06-18 03:12:02 +02:00 |
|
Henrik Giesel
|
526e87aaef
|
Remove components from editor BUILD.bazel again
|
2021-06-18 02:59:45 +02:00 |
|
Henrik Giesel
|
bfe2bdecc0
|
Disable function dropdown when no field selected
|
2021-06-18 02:51:42 +02:00 |
|
Henrik Giesel
|
767af9e478
|
Satisfy linter
|
2021-06-18 02:44:15 +02:00 |
|
Henrik Giesel
|
a3a59f0293
|
Make text wrapper buttons work with Codable
|
2021-06-18 02:33:56 +02:00 |
|
Henrik Giesel
|
8a07d3161d
|
Disable Media button for Codable, but keep wrapping and cloze key for now
|
2021-06-18 02:02:01 +02:00 |
|
Henrik Giesel
|
2322d170fc
|
Disable ColorButtons for Codable
|
2021-06-18 01:44:15 +02:00 |
|
Henrik Giesel
|
c23665cf63
|
Allow Tab and Shift+Tab on Codable
|
2021-06-18 01:32:46 +02:00 |
|
Henrik Giesel
|
28679968f7
|
Disable FormatBlock buttons for Codable
|
2021-06-18 01:17:43 +02:00 |
|
Henrik Giesel
|
eeb954535f
|
Disable Bold button in Codable
|
2021-06-18 00:27:07 +02:00 |
|
Henrik Giesel
|
817dee1a1b
|
Make different onPaste behavior for Editable and Codable
|
2021-06-17 23:12:15 +02:00 |
|
Henrik Giesel
|
94c789a5bf
|
Have correct enter behavior in for Editable and Codable
|
2021-06-17 22:02:06 +02:00 |
|
Henrik Giesel
|
f923660fc6
|
Add autoclosetag addon for CodeMirror
|
2021-06-17 21:45:11 +02:00 |
|
Henrik Giesel
|
9cbc1c33e7
|
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
|
a87f81f00b
|
Only toggle the current field, not all
|
2021-06-17 20:57:20 +02:00 |
|
Henrik Giesel
|
7266f485d0
|
Make Codable enter behavior the same as Editable
|
2021-06-17 20:47:33 +02:00 |
|
Henrik Giesel
|
95dad1abc1
|
Match and fold tags
|
2021-06-17 20:27:34 +02:00 |
|
Henrik Giesel
|
447e54d3af
|
Make editable hide correctly when activating codable
|
2021-06-17 19:08:14 +02:00 |
|
Henrik Giesel
|
d80fc6a397
|
Successfully add monokai theming
|
2021-06-17 18:36:12 +02:00 |
|
Henrik Giesel
|
74961ff118
|
Make DOMParser correctly return innerHTML
|
2021-06-17 17:52:27 +02:00 |
|
Henrik Giesel
|
4daede2995
|
Make Codable correctly update the editable state and its button
|
2021-06-17 17:49:50 +02:00 |
|
Henrik Giesel
|
7f76a98546
|
Apply the Monokai theme
|
2021-06-17 17:18:00 +02:00 |
|
Henrik Giesel
|
8a902944a8
|
Setup toggleHtmlEdit on editingArea
|
2021-06-17 17:08:33 +02:00 |
|
Henrik Giesel
|
678a5997e9
|
Connect HtmlEditButton to codable
|
2021-06-17 15:30:05 +02:00 |
|
Henrik Giesel
|
8b15c81d34
|
Display CodeMirror in editingArea
|
2021-06-17 14:44:03 +02:00 |
|
Henrik Giesel
|
709c1be7a0
|
Add codable element
|
2021-06-17 13:46:25 +02:00 |
|
Damien Elmes
|
2e53dc63c8
|
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
|
0f549d2b82
|
Merge cloze hint divs into one
|
2021-06-15 08:43:18 +02:00 |
|
RumovZ
|
d8c3e71105
|
Add editor hints for cloze errors
|
2021-06-12 17:35:40 +02:00 |
|
hikaru-y
|
2778398812
|
Disable color picker buttons when a field is not focused
|
2021-06-11 23:36:06 +09:00 |
|
Damien Elmes
|
dbfe12edbf
|
use different toolbar size on Mac
see discussion on 984ab9b6fe
|
2021-06-05 11:28:36 +10:00 |
|
Damien Elmes
|
984ab9b6fe
|
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
|
aaa210d662
|
Make ColorPicker buttons halfwidth
|
2021-05-31 00:17:06 +02:00 |
|
Henrik Giesel
|
8e81a79fbf
|
Implement new ColorPicker
|
2021-05-30 22:58:40 +02:00 |
|
Henrik Giesel
|
ad1a72495f
|
Implement WithColorHelper.svelte
|
2021-05-30 21:44:05 +02:00 |
|