rafjaf / joplin-plugin-toggle-editor

Joplin plugin which adds to the View menu a command to toggle between WYSIWIG and Markdown editors, with a keyboard shortcut
1 stars 0 forks source link

Switch from WYSIWYG to MD not working #1

Open adriangrupp opened 2 months ago

adriangrupp commented 2 months ago

Hi, First of all, I'm highly appreciating this feature! However, I have the issue that the toggle still really works in one direction properly. I can toggle from MD -> WYSIWYG without problems, but once I'm editing in WYSIWYG the toggle won't work anymore. It only seems to register when I focus the editor's top bar.

OS is Win10 Joplin is v2.14.20

rafjaf commented 2 months ago

@adriangrupp Thank you for your feedback. It is strange : for me it works both ways. I have no idea what could explain this - as you can see in https://github.com/rafjaf/joplin-plugin-toggle-editor/blob/main/src/index.ts the source code is very simple and should not be dependent on which editor is active or which element has the focus...