TRIAEIOU / markdown-input

Anki addon to allow note editing in markdown, either in the Anki windows or external dialog.
MIT License
18 stars 2 forks source link

Last field in Markdown Input window is always erased after saving #5

Open a-litsov opened 10 months ago

a-litsov commented 10 months ago

Hello! Big thanks for your addon! I just found some bug or maybe just doing something incorrectly. I hope you will find some time to test this.

Situation: I edit note in Markdown Input window (Ctrl+Alt+M) and I have "Window input" -> "Mode" is set to note in addon config. I enter text for the last field (named "Back") by adding content after <!-- Back --> tag and click Ok.

Expected behavior: As I click on Ok in Markdown Input window, everything after <!-- Back --> tag will be pasted in corresponding Back field on the next screen.

Actual behavior: Back field is erased on the next screen and my changes that I added after <!-- Back --> tag are lost.

I will be glad to see this fixed. As of now I just added unused tmp field to be the last one as workaround, set it to be always hidden and it work that way.