Commit graph

193 commits

Author SHA1 Message Date
Damien Elmes
1788cd2fac as tmpfile() returns unicode now, shouldn't try to convert to unicode again 2012-07-19 17:41:52 +09:00
Damien Elmes
1860c77b89 allow downloading of https from clipboard 2012-07-15 16:41:55 +09:00
Damien Elmes
b77ab05421 make sure we save tags regardless of where the focus is 2012-07-04 20:37:38 +09:00
Damien Elmes
8a414fff29 don't throw error when invalid utf8 found in % escape 2012-06-15 02:19:33 +09:00
Damien Elmes
21f5132c0b when img/audio link pasted, convert to local 2012-06-15 00:53:08 +09:00
Damien Elmes
5032a7d507 utf+8 2012-06-11 19:55:15 +09:00
Damien Elmes
91d5693bf7 after html edit, focus changed field so it gets saved 2012-05-31 19:02:16 +09:00
Damien Elmes
b41fc89b71 don't throw error when returning from Cards dialog with invalid search 2012-05-31 18:05:13 +09:00
Damien Elmes
064803bce7 overhaul font handling
- set the default webview font to the system font
- remove explicit font size settings in favour of the default
- remove card list size customization in favour of the default
2012-05-26 20:28:30 +09:00
Damien Elmes
e4c1132aef give a little separation to fields+cards 2012-05-24 22:28:05 +09:00
Damien Elmes
c42865425a move deck selection to top of add cards 2012-05-24 22:12:09 +09:00
Damien Elmes
6a74d6627b use studydeck for deck selection 2012-05-24 20:30:11 +09:00
Damien Elmes
1eaa6b9c1a make sure to update tags when not adding 2012-05-22 12:00:51 +09:00
Damien Elmes
dfe7f5bf16 fix tags reverted on clayout 2012-05-20 17:54:11 +09:00
Damien Elmes
4998e038bb instead of changing default deck on add, only set once 2012-05-20 17:12:16 +09:00
Damien Elmes
c918f6dd91 Revert "change current deck if user specified different one when adding"
This reverts commit 1794c69fe7.
2012-05-20 17:10:18 +09:00
Damien Elmes
d91f4279ae don't show [no deck] in add cards 2012-05-20 10:41:17 +09:00
Damien Elmes
47c89606a9 show dialog on cloze in wrong type 2012-05-19 16:20:39 +09:00
ospalh
92e2b4afd0 Strip “rgb(0, 0, 0)” from drag-and-dropped text. 2012-05-15 14:48:24 +02:00
Damien Elmes
f8c7f130a6 delayed eval no longer seems necessary 2012-05-14 03:29:38 +09:00
Damien Elmes
5d7dcad335 add svg to images 2012-05-11 07:03:55 +09:00
Damien Elmes
07b859ff98 when context menu activated outside editor, show only copy 2012-05-08 01:45:41 +09:00
Damien Elmes
a878a5c7b4 focus editor area on drop so contents are saved 2012-05-06 18:53:06 +09:00
Damien Elmes
c6c938a262 remove insertHtmlOK hack; focus handling seems to have fixed this 2012-05-06 14:54:38 +09:00
Damien Elmes
ff28fdd189 when wrap called with empty selection, postion caret in middle 2012-05-06 14:53:33 +09:00
Damien Elmes
e7911652ef catch missing src in img 2012-05-06 12:45:25 +09:00
Damien Elmes
cfa95af722 copy/paste updates
- unify handling of shortcut key and context menu cut/copy/paste
- don't adjust selection on window/popup focus, so context works on win32 now
- remove undocumented shift to keep behaviour
2012-05-04 23:54:36 +09:00
Damien Elmes
1794c69fe7 change current deck if user specified different one when adding 2012-05-04 23:00:11 +09:00
Damien Elmes
aabede633b flag anki text on cut, too 2012-05-04 16:22:32 +09:00
Damien Elmes
b1ba96d517 add option to paste as pngs; compress pngs 2012-05-04 15:32:13 +09:00
Damien Elmes
faf4e396f8 use libanki json 2012-04-28 17:58:28 +09:00
Damien Elmes
c1ea7f6d52 focus field on image click 2012-04-25 12:36:35 +09:00
Damien Elmes
e40c4483a9 filter html when pasting/dragging between fields 2012-04-25 12:21:06 +09:00
Damien Elmes
63990af4b2 fix drag & drop copying instead of cutting 2012-04-25 11:57:04 +09:00
Damien Elmes
04f32a7484 work around collapsing fields bug 2012-04-24 09:33:21 +09:00
Damien Elmes
954c5171e3 focus correct field on tab/backtab 2012-04-24 08:27:40 +09:00
Damien Elmes
c3c9156fdb allow non-latin chars in profile names 2012-04-24 05:05:23 +09:00
Damien Elmes
35b366872b use a better font for field names 2012-04-24 03:10:23 +09:00
Damien Elmes
bddba8079e check for highest cloze across all fields 2012-04-24 02:10:11 +09:00
Damien Elmes
2ad2244395 fix foreground colour issues
- use setFormat() again, as I can't reproduce crashes on any platform anymore,
  and wrap() didn't allow users to set a colour and then start typing.
- work around a qt bug where focus is not restored after native color dialog
  closes
2012-04-23 06:24:59 +09:00
Damien Elmes
7295bb829d rework saveNow() so html editor saves text properly 2012-04-23 05:43:23 +09:00
Damien Elmes
5cd6b830ed don't strip html when pasting from field to field 2012-04-23 04:52:18 +09:00
Damien Elmes
b3093ad336 option to use current deck when adding 2012-04-23 03:49:32 +09:00
Damien Elmes
2cd7240fd2 add hook to editor button setup 2012-04-22 10:48:20 +09:00
Damien Elmes
803e3059c7 simplify colour handling
Instead of maintaining a list of recent colours, remember last colour and
provide the option of picking a different colour, like in MS Word/LibreOffice.
2012-04-22 10:25:30 +09:00
Damien Elmes
53f6dacf62 don't allow adding of cards to cram deck 2012-04-22 08:24:50 +09:00
Damien Elmes
083caafd95 don't save the deck in add mode until the note is being added 2012-04-22 07:12:52 +09:00
Damien Elmes
55256d0f39 accept ctrl+alt+shift+c for reuse # cloze 2012-04-22 07:03:35 +09:00
Damien Elmes
dfbe5dbfa8 limit images in editor to the field size 2012-04-21 06:46:32 +09:00
Damien Elmes
91e59dc35b don't show tab add/close buttons in cloze model 2012-04-19 10:19:16 +09:00