BlueGreenMagick / Edit-Field-During-Review-Cloze

Code for the Anki addon Edit Field During Review Cloze
https://ankiweb.net/shared/info/385888438
Other
17 stars 3 forks source link

Addon changes behavior in editor of card types #60

Open itsdomme opened 3 years ago

itsdomme commented 3 years ago

Hi, I suppose it shouldn't be this way: When I edit the card types and I use "edit:" for the front, I can't use normal spaces and a new line is forced. But when I don't use "edit:" it's working properly.

With editing: Screenshot 2021-08-26 123844

Without editing: Screenshot 2021-08-26 124111

Does anybody has a hint for me?

BlueGreenMagick commented 3 years ago

Try changing the addon config ‘tag’ from 'div' to ‘span’.

But a word of caution: I don’t test the addon with span option, so you may encounter more bugs. And it’s also not impossible that the config option will be removed some day.

itsdomme commented 3 years ago

Unfortunatelly doesnt change anything

BlueGreenMagick commented 3 years ago

In case you haven't, can you check if setting it to 'span' doesn't work in the reviewer as well?

When I tested it, the fields were below the other in the note type template previewer, but they were side by side in the reviewer.

EDIT: Looks like the cause was because the config is only updated at the start and when review session starts. Restarting Anki will do the trick as well.