Add Editor Field Content

Hi Community,

How to fetch the filed content within the add editor?

For example, the text inside ‘Front’.

Best Regards,
Jack

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.

1 Like

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

2 Likes