For this PR, I changed how the editor is invoked (through double-clicking like a regular markdown cell). Also opted for NotebookTracker instead of NotebookTools.Tool. Fixed some issues with the editor as mentioned in the commit comments. I think this is still too hacky of an implementation because I'm having to rewrite the commands for a regular markdown cell and use preventDefault a lot just to make it work for the editor.
For this PR, I changed how the editor is invoked (through double-clicking like a regular markdown cell). Also opted for NotebookTracker instead of NotebookTools.Tool. Fixed some issues with the editor as mentioned in the commit comments. I think this is still too hacky of an implementation because I'm having to rewrite the commands for a regular markdown cell and use preventDefault a lot just to make it work for the editor.