Hi Community,
How to fetch the filed content within the add editor?
For example, the text inside ‘Front’.
Best Regards,
Jack
abdo
2
Use something like editor.note["Front"]
See How to identify Editor instance in Editor gui_hooks for a possible way to get the editor instance.
ijgnd
3
When you are in the editor you might want to use editor.saveNow to save unsaved edits.
Check out how Anki opens the the built-in html source code window (ctrl+shift+x) and displays the code,
slightly offtopic, but maybe also interesting: open the browser or add window from the debug console