66 9
Contact Author Sign in to rate

Edit Field During Review (Cloze)

0.04MB. Updated 2020-12-17. Only supports Anki 2.1.x.
The author has shared 8 other item(s).

Description

Link to the original addon: https://ankiweb.net/shared/info/1020366288 == Upgrades to the original addon == Cloze support, Mathjax, sound, and javascript-field-modifying notes support, Improved image and html pasting, Option for editing field only on Ctrl+click, Special formatting, Image resizing, etc. == Notes == Don't use this addon and the original addon at the same time. When you encounter an error, please try setting 'process_paste' addon config to false. That config might cause errors in old versions. This addon was only tested on 2.1.22. But I try to support older versions as well, and there should be no problem on at least 2.1.15+. == How To Use == (See the description in the original addon page for a detailed manual) Open the Card Template and replace {{Fieldname}} with {{edit:Fieldname}}. For cloze cards, replace {{cloze:Fieldname}} with {{edit:cloze:Fieldname}} (Please note that {{edit:FrontSide}} may not work!) During review click on the field, edit it and click outside of it or press Esc to save it. You can undo any changes with Ctrl+Z. Press Tab or Shift+Tab to switch between different editable fields. Ctrl+Shift+C and Ctrl+Shift+Alt+C shortcuts work. Double click on a resizable image to revert it to its original size. Press 'Alt + S' to toggle image resizing mode. (Recommended when you edit text next to images) If you find the image resizer annoying, you can set 'resize_image_default_state' to 'false' in addon config. If you have a link, you can Ctrl+Click on the link. < Configuration > 'ctrl_click': Make the field editable only when Ctrl + Click. 'process_paste': When pasting image or html content, process them to save it locally, and strip unnecessary tags. 'remove_span': Remove all span tags when editing field. 'resize_image_default_state': Whether image resizing mode is turned on by default. 'resize_image_preserve_ratio': Aspect ratio mode. 0: don't preserve, 1: preserve only when using corner, 2: preserve always. 'z_special_formatting': Enable special formatting shortcuts. (Highlight, indent, remove formatting, etc) If you are using code snippets provided in the original addon page, replace '[contenteditable=true]'with '[data-EFDRCfield]' to get them working. == Credits == This addon was originally made by Kelciour, that's where most credits lie. Modified with permission. Thanks to Glutanimate for spotting and fixing a bug, Arthur Milchior for helping add image resizing function. == Other == Github link:https://github.com/BlueGreenMagick/edit-field-during-review-fork 2019.10.22 (v1.5): Added cloze support to original addon 2020.01.08 (v2.1): Cloze shortcut support, Ctrl click option added 2020.01.29 (v3.4): Improved pasting - pasted images will be saved locally, strips formatting 2020.03.06 (v4.2): Special formatting shortcuts, added blue outline 2020.03.20 (v5.0): Resize images during review 2020.03.20 (v5.1): Fixed several bugs 2020.04.28 (v5.2): Press ctrl to click on links, popup dictionary double disabled when editing, bug fixes 2020.04.29 (v5.3): Fixed {{edit:Tags}} 2020.06.11 (v5.4): Fix alt-cloze shortcut, show field name as placeholder when pressing ctrl 2020.12.17 (v5.5): Supports latest Anki versions

Download

As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

Supported Anki versions:

To download this add-on, please copy and paste the following code into Anki 2.1:

385888438

If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.

All Anki 2.1.x Add-Ons Contact Author

Reviews

on 1610473228
Thank you <3
on 1609500532
Works well and saves me so much time when editing cards! Thank you :D
on 1608397643
Updated and works great :)
Comment from author before post was edited
It was fixed in the latest update
on 1607878861
This is definitely a life changer, was sad because there was no support for Cloze card, love it. Must have by far.
on 1607792800
great od
on 1607490664
Corrupts images pasted into Anki, probably due to some error with the image resizer.
on 1607405236
Hey I keep getting the following error.


Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.35 (84dcaa86) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2
Platform: Mac 10.16
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2020-12-07 21:15:21
Add-ons possibly involved: ⁨Edit Field During Review Cloze⁩

Caught exception:
Traceback (most recent call last):
File "aqt/webview.py", line 37, in cmd
File "aqt/webview.py", line 123, in _onCmd
File "aqt/webview.py", line 547, in _onBridgeCmd
File "</Applications/Anki.app/Contents/MacOS/decorator.pyc:decorator-gen-42>", line 2, in _linkHandler
File "anki/hooks.py", line 638, in decorator_wrapper
File "anki/hooks.py", line 635, in repl
File "/Users/deol/Library/Application Support/Anki2/addons21/385888438/reviewer.py", line 193, in myLinkHandler
saveThenRefreshFld(reviewer, note, fld, new_val)
File "/Users/deol/Library/Application Support/Anki2/addons21/385888438/reviewer.py", line 153, in saveThenRefreshFld
saveField(note, fld, new_val)
File "/Users/deol/Library/Application Support/Anki2/addons21/385888438/reviewer.py", line 135, in saveField
txt = Editor.mungeHTML(None, txt)
File "aqt/editor.py", line 423, in mungeHTML
File "aqt/gui_hooks.py", line 1606, in __call__
File "aqt/editor.py", line 1225, in reverse_url_quoting
AttributeError: 'NoneType' object has no attribute 'mw'
Comment from author
This error was fixed in the latest update
on 1606737891
Hi, great add-on! Thank you so much.

Just FYI, I get an error message every first time I try to use the add-on after opening my Anki. The subsequent uses aren't problematic though. I posted my debug info on GitHub.
on 1606644896
Amazing add-on
on 1604514244
Why don't you merge this addon with Edit-Field-During-Review (https://ankiweb.net/shared/info/1020366288) and keep the best features of both (for example image editing while reviewing, cloze ecc.)? it seems pointless to me to keep updating two addons that do the same thing, instead of working together for the same goal! This is just a suggestion of course
on 1604499521
Error
An error occurred.
Debug info:
Anki 2.1.35 (84dcaa86) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-11-04 10:01:41

Caught exception:
Traceback (most recent call last):
File "aqt\webview.py", line 37, in cmd
File "aqt\webview.py", line 123, in _onCmd
File "aqt\webview.py", line 547, in _onBridgeCmd
File "<C:\Program Files\Anki\decorator.pyc:decorator-gen-38>", line 2, in _linkHandler
File "anki\hooks.py", line 638, in decorator_wrapper
File "anki\hooks.py", line 635, in repl
File "C:\Users\xxx\AppData\Roaming\Anki2\addons21\385888438\reviewer.py", line 193, in myLinkHandler
saveThenRefreshFld(reviewer, note, fld, new_val)
File "C:\Users\xxx\AppData\Roaming\Anki2\addons21\385888438\reviewer.py", line 153, in saveThenRefreshFld
saveField(note, fld, new_val)
File "C:\Users\xxx\AppData\Roaming\Anki2\addons21\385888438\reviewer.py", line 135, in saveField
txt = Editor.mungeHTML(None, txt)
File "aqt\editor.py", line 423, in mungeHTML
File "aqt\gui_hooks.py", line 1606, in __call__
File "aqt\editor.py", line 1225, in reverse_url_quoting
AttributeError: 'NoneType' object has no attribute 'mw'
Comment from author
Fixed in the latest update!
on 1604062727
Quite useful. Often clicking outside the box after editing will raise an error, but pressing ESC after editing always works and never raises an error.
on 1602798953
does'nt work
on 1601315839
work
on 1601268657
If anyone has an error message don't leave a bad reviewe. Go to the github page and report an issue
on 1600121652
I am using the snipping tool on windows and attempting to post an image into a basic card, but it is not working.
on 1599933682
Fantastic improvement to the original add-on. This is one of the most important add-ons I have. Thanks for sharing and God bless you!

I'm having, however, the issue below:

Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.33 (3f403040) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2020-09-11 18:15:35

Caught exception:
Traceback (most recent call last):
File "aqt\webview.py", line 37, in cmd
File "aqt\webview.py", line 123, in _onCmd
File "aqt\webview.py", line 547, in _onBridgeCmd
File "<C:\Program Files\Anki\decorator.pyc:decorator-gen-62>", line 2, in _linkHandler
File "anki\hooks.py", line 638, in decorator_wrapper
File "anki\hooks.py", line 635, in repl
File "C:\Users\hugom\AppData\Roaming\Anki2\addons21\385888438\reviewer.py", line 193, in myLinkHandler
saveThenRefreshFld(reviewer, note, fld, new_val)
File "C:\Users\hugom\AppData\Roaming\Anki2\addons21\385888438\reviewer.py", line 153, in saveThenRefreshFld
saveField(note, fld, new_val)
File "C:\Users\hugom\AppData\Roaming\Anki2\addons21\385888438\reviewer.py", line 135, in saveField
txt = Editor.mungeHTML(None, txt)
File "aqt\editor.py", line 421, in mungeHTML
File "aqt\gui_hooks.py", line 1606, in __call__
File "aqt\editor.py", line 1217, in reverse_url_quoting
AttributeError: 'NoneType' object has no attribute 'mw'
Comment from author
Fixed in the latest update!
on 1599933036
Error while editing cards using Anki 2.1.33

Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.33 (3f403040) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2020-09-12 21:32:55

Caught exception:
Traceback (most recent call last):
File "aqt\webview.py", line 37, in cmd
File "aqt\webview.py", line 123, in _onCmd
File "aqt\webview.py", line 547, in _onBridgeCmd
File "<D:\Program Files\Anki\decorator.pyc:decorator-gen-66>", line 2, in _linkHandler
File "anki\hooks.py", line 638, in decorator_wrapper
File "anki\hooks.py", line 635, in repl
File "C:\Users\azero\AppData\Roaming\Anki2\addons21\385888438\reviewer.py", line 193, in myLinkHandler
saveThenRefreshFld(reviewer, note, fld, new_val)
File "C:\Users\azero\AppData\Roaming\Anki2\addons21\385888438\reviewer.py", line 153, in saveThenRefreshFld
saveField(note, fld, new_val)
File "C:\Users\azero\AppData\Roaming\Anki2\addons21\385888438\reviewer.py", line 135, in saveField
txt = Editor.mungeHTML(None, txt)
File "aqt\editor.py", line 421, in mungeHTML
File "aqt\gui_hooks.py", line 1606, in __call__
File "aqt\editor.py", line 1217, in reverse_url_quoting
AttributeError: 'NoneType' object has no attribute 'mw'
Comment from author
Fixed in the latest update!
on 1599579918
Love the add-on. The only issue I am facing is that "remove formatting" is not working. I click ctrl+R but it does not remove the text formatting.

It is enabled in the addon configuration -- do you have any suggestions?

Edit: It was due to Heatmap addon. Heatmap already had a shortcut bound to Ctrl+R. So it was simply a matter of changing this.
on 1599312856
I've been getting this error a lot but can't find the "Contact Author" feature.

An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.31 (13476503) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
Platform: Windows 10
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-09-04 16:49:35

Caught exception:
Traceback (most recent call last):
File "aqt\webview.py", line 37, in cmd
File "aqt\webview.py", line 123, in _onCmd
File "aqt\webview.py", line 547, in _onBridgeCmd
File "<C:\Program Files\Anki\decorator.pyc:decorator-gen-114>", line 2, in _linkHandler
File "anki\hooks.py", line 638, in decorator_wrapper
File "anki\hooks.py", line 635, in repl
File "C:\Users\amjeg\AppData\Roaming\Anki2\addons21\popup_dictionary\main.py", line 216, in linkHandler
return _old(self, url)
File "<C:\Program Files\Anki\decorator.pyc:decorator-gen-84>", line 2, in _linkHandler
File "anki\hooks.py", line 638, in decorator_wrapper
File "anki\hooks.py", line 635, in repl
File "C:\Users\amjeg\AppData\Roaming\Anki2\addons21\385888438\reviewer.py", line 193, in myLinkHandler
saveThenRefreshFld(reviewer, note, fld, new_val)
File "C:\Users\amjeg\AppData\Roaming\Anki2\addons21\385888438\reviewer.py", line 153, in saveThenRefreshFld
saveField(note, fld, new_val)
File "C:\Users\amjeg\AppData\Roaming\Anki2\addons21\385888438\reviewer.py", line 135, in saveField
txt = Editor.mungeHTML(None, txt)
File "aqt\editor.py", line 421, in mungeHTML
File "aqt\gui_hooks.py", line 1606, in __call__
File "aqt\editor.py", line 1219, in reverse_url_quoting
AttributeError: 'NoneType' object has no attribute 'mw'
Comment from author
Fixed in the latest update!
on 1595669672
I can't resize images during review. Opt + S doesn't work for me, I'm using a Mac. Editing the cloze-text section works perfectly fine with ctrl + klick.
Can somebody help me? What am I doing wrong?
Apart from my inability, game changer!
on 1594734920
Perfect! And the idea of immage resize is wonderful! I've disable all other addons of that kind and by using just yours my reviews are much better now! And also by adding, I did not preocupy myself with the size while adding since I can edit it while on review with just few secconds! Two likes!
on 1593737294
Perfect add-on thanks

Would it be possible to be able to use superscript and subscript shortcuts (ctrl+shift+'+'/ctrl+'+') without the anki zoom add on taking over? I have asked the same question to the anki zoom page

Thanks
on 1593136829
Wonderful add on! Worked just fine a few weeks ago. However, it's not allowing me to edit while in review mode any more now. Even if I enable Ctrl+click to true, it still doesn't work. I've uninstalled and reinstalled but with no changes. Please help.
on 1591888373
this add-on is a beaut, the latest update round out the package of everything I need for editing while reviewing. it's robust and simple at the same time, thumb up!
on 1591832314
Used to use this but MIA Editor is way easier to use.
on 1591766282
Great addon. Can't seem to use the Ctrl+Shift+C shortcut- any idea why? I have the customized keyboard shortcut and checked that there are no overlapping shortcuts.
Comment from author before post was edited
I just updated the addon. It should hopefully now work!
on 1591626058
Wonderful add-on, but I would like to repost this ↓ because I'm facing the same problem.

"PLEASE FIX THIS BUG:
Using the shortcut Ctrl + Shift + Alt + C to create a new cloze with the same number, will type the letter C at the end of the cloze which I then have to delete manually .

Great Add-on and saves so much time :)"

Furthermore, I wanted to mention that the format shortcuts doesn't work properly if they've been changed with add-on Customize Keyboard Shortcuts → https://ankiweb.net/shared/info/24411424

A workaround would be really appreciated aswell. Thanks for your work
Comment from author
Ctrl+Shift+Alt+C bug was fixed in the latest update!
on 1591454875
Great addon! One of my all time favourites

@The person who wants to keep formatting while pasting: you already can. You can change the setting in the configuration menu
on 1591434084
How do I give this like a million thumbs up? I always end up having to make tiny corrections on my cards (I tend to look at a book or PDF and type so I make mistakes sometimes) and this add-on is EXACTLY what I needed. The normal process is so annoying. You're doing God's work out here.
on 1591151448
Works well, but one minor complaint: Could you please improve this add-on so that copy and paste also copies any text formatting? That is now possible in the normal edit window and in the browser.
on 1590851473
Works well!

One issue:
I can get underlines to work for my custom-styled note type (changes the font and colour, doesn't underline), but I cannot undo the change with ctrl+u. I can't seem to get underlines to work on a stock basic card (nothing changed) whatsoever. Bold and italics work fine on both the custom and stock note types.
Comment from author
That's a problem I faced as well. You can use Ctrl+R to remove formatting on those.
on 1590834411
Can you add ability to edit field during Preview from browser as well please. That would be super helpful to me. Edits to the field in Preview are not saved in the note unfortunately, only when actually studying the cards.
on 1590824019
Does not work at all. I've restarted Anki and tried different note types, nothing happens. No error message or anything. I'm using 2.1.15.
Comment from author
Sorry that you cannot get the addon to work. I'm not sure what problem you are facing as there is no error message. Could you try disabling all other addons first and see if that works?

If it doesn't work, could you tell me by opening an issue on github or send me a pm on reddit (u/bluegreenmagick)? This platform isn't good for conversations.
on 1590793102
Works just fine
on 1590285422
Hi! I can't seem to get this add on to work. I've tried disabling all other add ons, turning off dark mode, and using a different profile - but unfortunately to no avail. Do you any further troubleshooting suggestions? If I could get this to work, it'd save me a HUGE amount of time, so I'd really really appreciate it!
Comment from author
What Anki version are you using? Is there an error message? Can you try creating a basic note type and see if it works on that? (It is possible that having some special characters in field name, or some js in card template could cause an issue.)
on 1588906112
Update 3: found this error message when I buried a card after editing it during review:

Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools>Add-ons menu item to disable some add-ons and restart Anki, repeat until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-ons section of our support site.
Debug info:
Anki 2.1.22 (0ecc189a) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2020-05-07 22:04:37

Caught exception:
Traceback (most recent call last):
File "C:\Users\lukem\AppData\Roaming\Anki2\addons21\385888438\reviewer.py", line 197, in myLinkHandler
val = get_value(note, decoded_fld)
File "C:\Users\lukem\AppData\Roaming\Anki2\addons21\385888438\reviewer.py", line 156, in get_value
check_fld_is_valid(note, fld)
File "C:\Users\lukem\AppData\Roaming\Anki2\addons21\385888438\reviewer.py", line 169, in check_fld_is_valid
raise KeyError(f"Field {fld} not found in note. Please check your note type.")
KeyError: 'Field Front not found in note. Please check your note type.'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "aqt\webview.py", line 31, in cmd
File "aqt\webview.py", line 97, in _onCmd
File "aqt\webview.py", line 500, in _onBridgeCmd
File "<C:\Program Files\Anki\decorator.pyc:decorator-gen-78>", line 2, in linkHandler_wrap
File "lib\site-packages\anki\hooks.py", line 666, in decorator_wrapper
File "lib\site-packages\anki\hooks.py", line 663, in repl
File "C:\Users\lukem\AppData\Roaming\Anki2\addons21\385888438\reviewer.py", line 199, in myLinkHandler
tooltip(ERROR_MSG.format(e.message))
AttributeError: 'KeyError' object has no attribute 'message'

Caught exception:
Traceback (most recent call last):
File "C:\Users\lukem\AppData\Roaming\Anki2\addons21\385888438\reviewer.py", line 197, in myLinkHandler
val = get_value(note, decoded_fld)
File "C:\Users\lukem\AppData\Roaming\Anki2\addons21\385888438\reviewer.py", line 156, in get_value
check_fld_is_valid(note, fld)
File "C:\Users\lukem\AppData\Roaming\Anki2\addons21\385888438\reviewer.py", line 169, in check_fld_is_valid
raise KeyError(f"Field {fld} not found in note. Please check your note type.")
KeyError: 'Field Front not found in note. Please check your note type.'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "aqt\webview.py", line 31, in cmd
File "aqt\webview.py", line 97, in _onCmd
File "aqt\webview.py", line 500, in _onBridgeCmd
File "<C:\Program Files\Anki\decorator.pyc:decorator-gen-78>", line 2, in linkHandler_wrap
File "lib\site-packages\anki\hooks.py", line 666, in decorator_wrapper
File "lib\site-packages\anki\hooks.py", line 663, in repl
File "C:\Users\lukem\AppData\Roaming\Anki2\addons21\385888438\reviewer.py", line 199, in myLinkHandler
tooltip(ERROR_MSG.format(e.message))
AttributeError: 'KeyError' object has no attribute 'message'

Caught exception:
Traceback (most recent call last):
File "C:\Users\lukem\AppData\Roaming\Anki2\addons21\385888438\reviewer.py", line 197, in myLinkHandler
val = get_value(note, decoded_fld)
File "C:\Users\lukem\AppData\Roaming\Anki2\addons21\385888438\reviewer.py", line 156, in get_value
check_fld_is_valid(note, fld)
File "C:\Users\lukem\AppData\Roaming\Anki2\addons21\385888438\reviewer.py", line 169, in check_fld_is_valid
raise KeyError(f"Field {fld} not found in note. Please check your note type.")
KeyError: 'Field Front not found in note. Please check your note type.'

During handling of the above exception, another exception o
Comment from author before post was edited
How did you encounter that error? When you click on the field, the reviewer javascript sends a request to the python backend to retrieve the value of the field. The only way I see that this could have happened is right after you clicked on the field, the card (and its note type) changed to the next card. I didn't realize such timing was possible.

The next update should somewhat fix this by showing a less obtrusive tooltip instead of an error dialog.
on 1588675461
PLEASE FIX THIS BUG:
Using the shortcut Ctrl + Shift + Alt + C to create a new cloze with the same number, will type the letter C at the end of the cloze which I then have to delete manually .

Great Add-on and saves so much time :)
on 1588350637
I wonder if it's any possibility that we can highlight the text during the review? So far I can do B, I, U to mark some notes, but they are not obvious to stand out. It would be wonderful if we can quickly highlight or change the color of some texts while reviewing them.
Comment from author
Highlighting(in a single color) was implemented recently amongst other formatting options. You can go to the addon config to see the shortcuts and change the color.
on 1588346591
Do not know why but when clicking on my extras field, images get smaller and smaller as I click on it

Really annoying as I have to resize them everytime

FINAL EDIT : solution here : https://www.reddit.com/r/Anki/comments/g7d41n/anyone_experiencing_this_bug_with_edit_cloze/


Other question :

Is there a way to show two fields on the same row like : field - hint
Seems like the command edit: prevents that + contendetible = true doesn't make it work on either the original add-on and this one

FINAL EDIT : nevermind actually works, if anyone's curious you have to change tag from div → span in the config file of the add-on
Then just throw in the two fields side by side (with the edit: code) in the card code without "div contenteditable" coding being necessary

Thanks ++
Comment from author before post was edited
Sorry but I can't reproduce it on my end. Would you be willing to share your addon config (image resizing related), note type, and your card data? (Preferably via Github or Reddit)

UPDATE: You could try setting "tag" in config to "span". Although I can't guarantee that the setting will not be removed in the future.
on 1588300751
Works much better than the last one, Remove Formatting is something that I needed
Is it possible to bring back the 'Paste' option when I right-click on an editable field, it only has the 'Copy' option now
on 1588134789
very useful,thanks a lot👍
on 1588099645
Neat! I really like the configuration settings available! I've been wanting the "ctrl+click" function for a while. The "Ctrl + R" button does not function for me, though

Is there a way to personalize the shortcuts? EDIT: thank you! that worked (for anyone else having my same problem: you can also change Review Heatmap's shortcut by clicking on its "settings" symbol)

@The guy who complained about image resizing: you may* go to the configuration menu and set: "resize_image_default_state": false

EDIT2: could it be possible to add an additional couple of colors to the addon? Editing the code was easy enough (I assigned my other two colors to F8 and F9), but I dread the prospect of doing it on each update. Also, I think everyone would appreciate the option!
Comment from author before post was edited
Thank you!

For Ctrl+R, if you are using Review Heatmap addon, that addon is really greedy and won't let other addons use Ctrl+R shortcuts. I sent a pull request some time ago and hopefully should be fixed in its next update.

Currently, it is not possible to configure the shortcuts. I'd like that as well, but not sure how to go about it. Although I wouldn't recommend it, you could change it by editing global_card.js in the addon directory. But it will be overridden after an update. (The shortcut info is in EFDRC.specials_ctrl variable. Look at https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code/code_values for code)
on 1588088855
¡Muchas gracias!
on 1587831896
absolutely superb add-on. Makes editing during review so much smoother. Thank you so much!
on 1587663687
Brings up a box around images now and completely resets the size of images, very frustrating.

I considered this add-on essential and now its causing me headaches.

Edit: Thanks for the response and great work!
Comment from author before post was edited
Sorry about that. Current implementation of image resizing isn't the best. I'd ask you to set the config 'resize_image_default_state' to 'false'.
on 1587290265
Hi thank you very much this good addon .

I know we can use F7 for only one color (default blue). Can we use this for more than one font color. For example red, blue, yellow etc. with different shortcuts. Sometime we need more than one font color. Thank you very much
on 1587262108
I been waiting for this add-on for years too, thank you so much. Is it possible to prevent scroll up when we click outside the template? I hav long texts in my cards... and aways when i click outside back to top of the card.
on 1586259097
essential, please continue this :) FUCKIN LOVE IT!
on 1585918725
That was it! Thank you so much, I have been wanting an add on like this for years. You're an angel

Image resize works great!
Comment from author before post was edited
I believe an addon you are using is in conflict with this one. This addon requires a function in anki code to work, and if another addon overrides it, the above error happens.

Following addons are known not to work with this one: Redesign (https://github.com/nickdvlpr/Redesign/issues/11), Anki-TouchScreen.
on 1585789546
Works really well, and the additional ability to resize images in the reviewer is so nice.

Thank you
on 1585687504
Amazing add-on! Is it possible to make it so that f7 would colour the text in a different colour (currently it's blue)?

Edit:
Which config do I need to edit the #00f? This is everything I can see on the config
{
"tag": "div",
"undo": true
}

Edit: Yup it works now. Thanks! I have another question. How can i access the hyperlinks which i've added in my cloze? Clicking on it would just activate the editing during review.
Comment from author
You can change the color in the addon config. Change the "#00f" to some other color hex code.

EDIT: Are you sure you are looking at this addon's config? (And not Edit Field During Review's?) There should be ` "fontcolor": [true, "#00f"], `.
EDIT: Uh.... I have no idea! You could set ctrl_click to true - then only Ctrl + Click will activate the edit mode.
on 1584824588
For some reason, when editing cards during review on a Mac with version 2.1.21, the Shift+Command+C shortcut causes an extra Cloze space to appear, like this:
This is a sample sentence. —> This is a {{c1::sample}}{{c2::}} sentence.

This only happens when editing during review, not in the Edit Current window. Any way to fix this? Other than that, thank you so much for this amazing add-on!

Update: The issue only seemed to be happening with one particular deck, so it's probably a unique issue to just those cards. All of my other decks work fine. Thanks!
Comment from author before post was edited
Maybe you have two versions of this addon running? For example also running the image resizing version Arthur Milchior posted on reddit?
on 1584726422
Just wanted to say thanks for making this extension way more than what I was expecting when I originally downloaded it. I was just expecting to be able to edit cloze cards but now its absolutely incredible! Your work is appreciated!
on 1584661889
Amazing! Thank you.
on 1584280825
Waiting patiently for Resize Images :)
on 1584040597
Actually we can edit empty fields! Just add "edit" the same way to the empty field!
on 1583381514
Sad day: it can't be used with anki killstreaks :'( i'd choose this add-on over my killstreaks, but those helped the dreariness of step studying even a little

copy/pasted error box below, removed user ID



Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools>Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-ons section of our support site.
Debug info:
Anki 2.1.19 (3c8690ae) Python 3.8.0 Qt 5.14.0 PyQt 5.13.2
Platform: Mac 10.15.3
Flags: frz=True ao=True sv=2
Add-ons possibly involved: Anki Killstreaks, Edit Field During Review Cloze

Caught exception:
Traceback (most recent call last):
File "aqt/webview.py", line 28, in cmd
File "aqt/webview.py", line 94, in _onCmd
File "aqt/webview.py", line 407, in _onBridgeCmd
File "</Applications/Anki 2.1.19.app/Contents/MacOS/decorator.pyc:decorator-gen-48>", line 2, in linkHandler_wrapper
File "anki/hooks.py", line 82, in decorator_wrapper
File "anki/hooks.py", line 79, in repl
File "/Users/txxxxxxx/Library/Application Support/Anki2/addons21/385888438/__init__.py", line 219, in myLinkHandler
reviewer._showAnswer()
File "aqt/reviewer.py", line 237, in _showAnswer
File "anki/hooks.py", line 31, in runHook
File "/Users/txxxxxxx/Library/Application Support/Anki2/addons21/579111794/main.py", line 163, in on_show_answer
_multikill_state_machine = _multikill_state_machine.on_show_answer()
AttributeError: 'AnswerShownState' object has no attribute 'on_show_answer'




EDIT: somehow they're working in unison now, don't know what I did. I think I had to add "edit:____" to one of the fields still or something, but point is it isn't giving me problems anymore. I can delete this and just leave a positive remark, or you can use whatever that error message is for whatever you'd like if it improves the add-on.
Comment from author
Great to hear they work fine now!
on 1582977157
A GREAT time saving add-on. Thank you!!
on 1582894740
Was working great and loved it, but I can't do the most recent update (feb 27,2020) because it says the add-on code is invalid or that it is not available on my version of anki (but I have 2.1). Let me know if there is something I'm missing.

Update 2/28/20: Didn't realize that either. The download works now!
Comment from author before post was edited
Hello, it seems like you are running an older version of Anki. (2.1.X where X is less than 15) I didn't realize Ankiweb doesn't let you update when your Anki version is less than the minimum version I set up. I changed the minimum version to 0, could you try updating again and see if it works? Sorry for the inconvenience.
on 1582278381
so useful ! THANK YOU !
on 1581100824
everytime i am trying to edit the question field after exposing the answer it shows an error:

Edit:
Thank you very much, it worked! :)
Comment from author
Sorry, but you cannot use {{edit:FrontSide}}. You can only use it on a field. I would advise copy pasting the html in Front in place of {{FrontSide}}

UPDATE: {{edit:FrontSide}} seems to work in newer Anki versions?
on 1580994534
Really useful. Thanks.
on 1580375853
I like it. Current version does not work with pop-up dic though

Update: Everything works fine now.
Comment from author before post was edited
This addon is compatible with pop-up dictionary. Perhaps some other addon is interfering? (eg. Night Mode, Replay buttons on card)
on 1580146851
A must have add-on
on 1578592725
Love the new add cloze feature. Works well on my Mac and iOS app (with edits) and I almost never have to open the editor!
on 1576958896
Fantastic add-on!!!...Great works!!.. It should be perfect if you can change color and add more cloze items
Comment from author
Just updated the addon. Ctrl+Shift+C and Ctrl+Shift+Alt+C should work after updating the addon!
on 1575573652
WONDERFUL addition!! Particularly useful with the small delays now present on ANKI desktop while editing (bringing up the edit screen from the cards and moving between fields). My understanding is that these delays are an unavoidable side effect of new security aspects, and that's understandable. However, I have 20-30 new cards per day that were automatically generated (web-scraped "Frankenstein" decks) and require small edits, which I do when first learning the card. The new lagginess was really frustrating for my particular use case, but this add-on now allows me to bypass the edit screen altogether. Seriously - a wonderful time saver and usability improvement from my perspective. Thanks again.
on 1573937256
This add on is incredible! Makes editing cards so much easier. Is there any way to be able to add a cloze to a card (using Cmd+Shift+C on mac or Ctrl+Shift+C on PC) without having to go into full edit mode?
on 1572109227
Should make it so you can change font color and style through editor
on 1568842279
Greatest add-on ever. Period. It makes my life so much easier, I can't thank you enough.
Comment from author before post was edited
Sorry to know you are experiencing issues. I looked into it, but I could not reproduce the problem. The recent update fixed a bug that may have broke other addons. Could you try disabling all other addons and see if it works fine? And if it does, identify which addon it does not work with?

We could converse in more detail on github(link on bottom), or you could message me on reddit (u/bluegreenmagick)

https://github.com/BlueGreenMagick/edit-field-during-review-fork/issues

UPDATE: It has been patched in v1.3
on 1568295518
A great addition to an already useful addon. Would it be possible for you to implement Ctrl+Shift+C cloze shortcut during review?
Comment from author
Great idea! I will add that to my to-do list.

UPDATE: Added in v2.0
on 1567471943
Hello! I'm having a bit of trouble getting this to work on my ankidroid and ankimobile even though I have copied and pasted the exact codes onto the front card and styling sections, respectively. Any suggestions? It works wonderfully on my computer, however!
Comment from author
Sorry, but Add-ons only work on Anki Desktop. The code for AnkiMobile only makes the cards viewable not editable. (Without the code, the cards do not get rendered correctly due to a bug in AnkiMobile)
on 1565033283
Love that this has been implemented. It does seem to interfere with the Popup Dictionary add-on (not the first to do so), so that may be worth looking into from both sides.
Comment from author
Thanks for the feedback. This bug was found and has been fixed. It should not have any problems with most other add-ons now.
on 1564669654
Didn't find any issues yet. Great addon. Thank you so much :)