I no longer have time to support this addon with fixes and updates. Please feel free to fork the GitHub repo and/or upload your own version. Thanks!
Allows embedding of an input text box (<textarea>) in your notes. The guess can be automatically compared to the answer, just like the built-in {{type:}} template feature.
Note: For the best retention, you should keep the answers to your notes as short and specific as possible. This is discussed in many spaced repetition guides you can find online. Don’t let this addon make you forget that!
After installing, try it by adding a new note type (maybe cloned from “Basic (type in the answer)”), and editing the cards to:
Front template: {{Front}} [[typebox:Back]]
Back template: {{FrontSide}}
The style of the text box can be set in the card styling like this: textarea { height: 300px; }
After entering your guess in the text box, you can press CTRL+ENTER while the box is selected to show the answer.
To not do any correction on your guess, instead include the box as: [[typebox:]]
You can include the input box in cloze cards as well by including [[typebox:]] on both the front and back of the card.
The elements can be styled with the CSS selectors ‘.textbox-input’ (<textarea>), ‘.textbox-output-parent’ (<div>), and ‘.textbox-output’ (<pre>).
Please create issues for bugs or feature requests here. For bugs, first try clicking “Check for Updates” in the Add-ons menu and see if the issue persists.
Liên kết hỗ trợ
Reviews (30)
👍 2024-07-24
I had a problem with this add-on working properly, but I found a way. First, you need to do everything as in the guide. Secondly, we must have a program for editing Python code, e.g. Notepad++. Now we open the add-on folder (we can find it in the add-ons window after pressing the “Show files” button). We look for the init file and open it. We remove line 109, which looks like: res = given.strip() == cor.strip() and replace it with: if given.strip() == cor.strip(): res = f’<span style=“c
👍 2023-08-25
I need this add on and I decided to maintain under a new name since author not picking the pull request to fix.
Link for the new multi line type answer box - https://ankiweb.net/shared/info/1018107736
👍 2023-07-27
I have a simple solution for Multi-Line Input Boxes in Anki, for those who still want this feature (No need to download this deprecated add-on)
Create a new field in your card type called Scratch. You can do this by going to Manage Note Types -> Select your note type -> Fields… -> Add.
Then, adjust your Front and Back Templates accordingly:
Front Template:
{{Front}}
<textarea id=“scratchFront” style=“width: 100%; height: 100px;”></textarea>
<script>
if(localStorage.getIt
👍 2023-07-12
broken right now, errors left and right!!!
👍 2023-07-04
Update: now it will always say “encountered an error” like… when I press enter.
Often gives some sort of error if there’s a \ in the answer, e.g. for LaTeX commands and Regex. I can dismiss this with seemingly no effect besides the answer not being shown, but it’s rather annoying. Also, doesn’t compare HTML character codes correctly: if I have a card with the answer ©, and I review it and type ©, it will say that my answer is wrong and say that the answer is ©, which is re
👍 2023-06-24
I had a problem for a while, because it didn’t work, I tried to edit .py file according to some comments - didn’t work either.
It turned out that I just didn’t follow the instructions of description fully.
Once I done as it was said so I used explicitly:
Front template:
{{My name of front field}}
[[typebox:My name for back field]]
And for back template I deleted all shiet and left only:
{{FrontSide}}
It started working :)
👍 2023-06-08
This is very helpful for studying. Thanks for this add-on.
👍 2023-05-25
It’s a very cool feature, but i get this message, when i try to use… What wrong, anybody?
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 proble
👍 2023-05-10
This comment from below make it work
Was not working, so I changed line 109 in init.py:
from: #res = self.correct(given, cor, showBad=False)
to: res = self.mw.col.compare_answer(cor, given)
If you don’t know, the init.py is in \AppData\Roaming\Anki2\addons21\681236951 if you use Windows
👍 2023-05-06
Still works with the current Anki Version (2.1.60) on PC. Just follow the instructions …
👍 2023-05-05
Really cool, thanks; Was anybody successful in making work on mobile ? Android or Iphone?
👍 2023-04-26
Verified working withi version 2.54 qt5. Works great and can download the previous version from the Anki website.
👍 2023-04-18
This no longer works with Anki - does anyone know of an alternative to this? I really need this feature
👍 2023-03-20
not supported
👍 2023-02-22
Was not working, so I changed line 109 in init.py:
from: #res = self.correct(given, cor, showBad=False)
to: res = self.mw.col.compare_answer(cor, given)
Based on Ank’s original: https://github.com/ankitects/anki/blob/d9f1e2264804481a2549b23dbc8a530857ad57fc/qt/aqt/reviewer.py#L614
👍 2023-02-06
does good job
👍 2023-01-08
Thanks so much! Is this supposed to work on mobile, too? maybe I did something wrong
👍 2022-10-11
Multi-line text input is really useful. I wish this gets incorporated into the main program in the future.
👍 2022-06-25
great feature
👍 2022-03-29
Fantastic plugin. Excellent for programming.
👍 2022-02-04
Request a feature
Is it possible to make it work with cloze cards
Using {{type:cloze:Text}} will give a single input box would it be possible to make this a text area (multi line cloze type card)
Thank you
04 Feb 2022:
I found a new add-on https://ankiweb.net/shared/info/1933645497
Fill the blanks - Multiple type:cloze support
👍 2022-02-02
Amazing, best card I have
👍 2021-11-13
Can’t use on Android Device
👍 2021-11-12
Adds some sorely needed functionality. However, it does not work with LaTeX which is a bummer.
👍 2021-10-21
This is brilliant. Thank you so much! Anki 2.1.48 on macOS 11.6.
I’m learning Python at the moment, and it’s so great to be able to ask myself the various functions. Previously I’d asked myself the line number of a given function…
To insert a tab in the textbox, I use Keyboard Maestro (no affiliation): I assign the standard hotkey ⌃⌥Tab to the action Insert text by pasting: %Tab%.
As suggest above, one can easily style the type-in textbox – adding e.g. “padding:10px; border:1px solid si
👍 2021-09-25
Excellent!!!
This is super useful for not only typing in simple one-line answers, it also works perfectly for code!!!
I have to get the creator a coffee for this ;)
👍 2021-08-25
Es bueno, funciona realmente.
ADVERTENCIA: NO FUNCIONA SI ESCRIBES EN LATEX EN LA PARTE DE LA RESPUESTA.
SI QUIERES QUE FUNCIONE DEBES CAMBIAR LAS \ POR / COMO EN EL SIGUIENTE EJEMPLO.
Ejemplo:
https://drive.google.com/drive/folders/1gQbH2HS1T1kZVHhaeU0HAwwkYo5t1sGy?usp=sharing
👍 2021-08-22
Does what it says, even in 2.1.44 even though not supported.
👍 2021-07-21
just what i was looking for 👨💻
👍 2021-04-09
Fantastic author, really like this add-on
The only issue I have is seeing all the code I’ve written at once… how can I make the textbox larger? changing the height in styling to more pixels doesn’t seem to change it at all…