Damien Elmes
b182c07a99
Merge pull request #789 from abdnh/editor-decode-urls
...
Decode pasted URLs for nicer display
2020-10-12 12:33:52 +10:00
abdo
9140c3597f
Decode pasted URLs
2020-10-11 16:46:46 +03:00
johan456789
0ebe5d14eb
fix help url paths
2020-10-10 00:38:07 +08:00
Damien Elmes
0ed130b133
Merge pull request #781 from hgiesel/leftbtns
...
Refactor Buttons in editor and add editor_did_init_left_buttons gui_hook
2020-10-05 13:14:52 +10:00
Henrik Giesel
90572d1b7c
Turn _class into rightside boolean flag
2020-10-04 23:03:37 +02:00
Henrik Giesel
b5b2a07a88
Refactor out theclass assignment
2020-10-04 22:51:34 +02:00
Henrik Giesel
716f8a103c
Add editor_did_init_left_buttons gui_hook
2020-10-04 22:50:02 +02:00
Henrik Giesel
70b28b95a2
Make icon Optional explicitly in function signature
2020-10-04 22:42:28 +02:00
Henrik Giesel
b2d8db67f7
Rewrite so all editor toolbar buttons use _addButton
2020-10-04 22:41:18 +02:00
abdo
375a395ef5
Paste links as plain text in basic mode
2020-10-03 19:46:05 +03:00
abdo
a09a70fec2
Recognize ico files
...
Local icons were being pasted as normal links previously instead of
being enclosed in img tags.
2020-10-03 00:17:38 +03:00
abdo
a410a1117a
Support extended drag & drop
2020-09-14 17:07:31 +03:00
Damien Elmes
32f5bc96a8
another showDupes fix from ANH
...
https://forums.ankiweb.net/t/show-duplicates-not-working/2883/10
2020-09-04 10:13:30 +10:00
Damien Elmes
a5955f0206
sound tags need filename html escaped
...
https://forums.ankiweb.net/t/unable-to-play-longer-audio-on-cards/1313/30
2020-09-04 09:36:38 +10:00
Damien Elmes
d81251676d
Revert "Merge pull request #749 from ANH25/editor-media-autoplay"
...
This reverts commit 373402ed0a , reversing
changes made to 35c59cb899 .
https://github.com/ankitects/anki/pull/749#issuecomment-686385112
2020-09-04 08:34:26 +10:00
Damien Elmes
8729edffbb
update to latest black
2020-08-31 13:29:28 +10:00
ANH
063644a8f6
editor: only autoplay added media when recording
2020-08-26 14:49:19 +03:00
ANH
564f95c941
fix drag & drop issue when dropping things over existing content
2020-08-25 17:28:13 +03:00
ANH
bfd08fa2be
work around editor freeze issue after external drag & drop
2020-08-19 18:14:07 +10:00
Henrik Giesel
8a3f6d72c7
Merge branch 'master' into resethook
2020-08-17 12:39:09 +02:00
Damien Elmes
e856aa9952
fix duplicates not escaping html
...
https://forums.ankiweb.net/t/bug-report-showdupes-not-html-escaping-field-content/2167
2020-08-17 17:50:27 +10:00
Henrik Giesel
747c8532c2
Create ResetReason enum
2020-08-16 18:56:32 +02:00
Henrik Giesel
7bb4df13d9
Reorder + make all parameters optional
2020-08-16 18:56:32 +02:00
Henrik Giesel
0b9d7b2cb8
Satisfy formatter
2020-08-16 18:56:32 +02:00
Henrik Giesel
ea6eb2ba3b
Add new use of requireReset
2020-08-16 18:56:32 +02:00
Arthur Milchior
110f4c664f
Any removed
2020-08-12 01:37:21 +02:00
Henrik Giesel
31916102ed
Add newlines
2020-08-09 11:16:19 +02:00
Henrik Giesel
6122b9ac53
Avoid extra assignment
2020-08-09 10:38:31 +02:00
Henrik Giesel
097538b061
Move reverse url quoting functionality to editor_will_munge_html hook
2020-08-09 10:37:38 +02:00
Henrik Giesel
612e38def3
Move remove null bytes functionality to editor_will_munge_html hook
2020-08-09 10:35:52 +02:00
Henrik Giesel
b3b77ea3b3
Replace functionality of mungeHTML with call to new gui_hook
2020-08-08 23:59:01 +02:00
Adam Plaice
df9e22aef5
Re-add previously supported file extensions for media
...
(They had been removed in 6939d8ba5b ).
2020-07-29 15:08:33 +02:00
Damien Elmes
bb8127517f
Merge pull request #703 from ANH25/master
...
fix help-wanted#13
2020-07-29 14:14:57 +10:00
Matt Krump
98d8e1c926
Turn on check_untyped_defs for aqt.editor
...
* Turn on check_untyped_defs for aqt.browser
* Add type hints
2020-07-28 18:42:22 -06:00
ANH
a777784a38
add missing string r flag
2020-07-24 09:18:05 +03:00
ANH
3ad5c866b3
formatting
2020-07-24 09:00:34 +03:00
ANH
3276cc2e5e
avoid string concatenation
2020-07-24 08:12:46 +03:00
ANH
939f3c8dc7
fix ankitects/help-wanted#13
2020-07-24 06:00:55 +03:00
Andreas Reis
3628011599
Always use standard QT color dialog on Linux
...
On Linux only Gnome uses its own color dialog, and it's inferior to QT's own: See the same issue @ https://github.com/OpenShot/openshot-qt/pull/2425
(This is/was visible only on some distributions' packaged versions of Anki, not via ./run.)
isLin check since QT on Windows already uses the default, whereas Mac's own picker seems superior (from what I can judge by screenshots).
2020-07-05 13:21:38 +02:00
Damien Elmes
9bb45673a8
show clearer error when media db locked
...
should not happen frequently during a sync, but may happen during
the initial change checking stage
https://forums.ankiweb.net/t/error-when-adding-audio-file/495/2
2020-07-01 11:19:06 +10:00
Damien Elmes
154ee7a962
remove ellipsis
2020-06-12 09:04:19 +10:00
Quentin Nerden
a3e4449ec7
Update message to match gui
...
The Change Note Type... command is under the Notes menu, not the Edit menu
2020-06-09 11:49:47 +02:00
Damien Elmes
8d3b2aa88f
(un)escape image references in HTML editor to fix ampersand handling
...
https://anki.tenderapp.com/discussions/ankidesktop/41479-image-names-with-are-breaking
2020-06-09 11:22:07 +10:00
BlueGreenMagick
9029ea735c
add type hint to paste-related functions
2020-06-07 12:06:11 +09:00
Damien Elmes
f8e577367b
handle images served from directory + svg content type
...
https://anki.tenderapp.com/discussions/ankidesktop/41974-win-linux-when-pasting-some-html-i-get-error-in-_run_command-ankirsbackendioerror-ioerror
2020-06-01 13:40:17 +10:00
Damien Elmes
2b13ec5857
add maximize button to HTML editor
...
closes ankitects/help-wanted#1
2020-05-29 08:43:33 +10:00
sandersantema
79cfe3914e
remove unused variable 'w' from '_onHtmlEdit'
2020-05-27 12:04:49 +02:00
sandersantema
94e6078fcd
add saveGeom and restoreGeom to htmlEditor
2020-05-27 12:04:00 +02:00
BlueGreenMagick
60501852c2
add evt type for contextMenuEvent method
2020-05-26 17:12:39 +09:00
Damien Elmes
e5f32e2f4e
use context manager in retrieveURL
2020-05-21 10:58:42 +10:00