mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-14 15:56:38 +08:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user