Fixed md editor refactoring issues after manual test

Testing was a full manual feature test of each piece of supported logic
defined in the code.
This commit is contained in:
Dan Brown
2022-11-26 21:33:39 +00:00
parent 63d6272282
commit 8e4bb32b77
3 changed files with 8 additions and 8 deletions

View File

@ -23,7 +23,7 @@ export async function init(editor) {
cm.on('change', (instance, changeObj) => editor.actions.updateAndRender());
// Handle scroll to sync display view
const onScrollDebounced = debounce(editor.actions.syncDisplayPosition, 100, false);
const onScrollDebounced = debounce(editor.actions.syncDisplayPosition.bind(editor.actions), 100, false);
cm.on('scroll', instance => onScrollDebounced(instance));
// Handle image paste