mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-11 18:24:43 +02:00
This commit is contained in:
parent
5462ee635c
commit
fe2eb25acb
@ -191,7 +191,6 @@ function Editor(props: EditorProps, ref: any) {
|
|||||||
cm.on('drop', editor_drop);
|
cm.on('drop', editor_drop);
|
||||||
cm.on('dragover', editor_drag);
|
cm.on('dragover', editor_drag);
|
||||||
cm.on('refresh', props.onResize);
|
cm.on('refresh', props.onResize);
|
||||||
cm.on('update', props.onResize);
|
|
||||||
|
|
||||||
// It's possible for searchMarkers to be available before the editor
|
// It's possible for searchMarkers to be available before the editor
|
||||||
// In these cases we set the markers asap so the user can see them as
|
// In these cases we set the markers asap so the user can see them as
|
||||||
@ -206,7 +205,6 @@ function Editor(props: EditorProps, ref: any) {
|
|||||||
cm.off('drop', editor_drop);
|
cm.off('drop', editor_drop);
|
||||||
cm.off('dragover', editor_drag);
|
cm.off('dragover', editor_drag);
|
||||||
cm.off('refresh', props.onResize);
|
cm.off('refresh', props.onResize);
|
||||||
cm.off('update', props.onResize);
|
|
||||||
editorParent.current.removeChild(cm.getWrapperElement());
|
editorParent.current.removeChild(cm.getWrapperElement());
|
||||||
setEditor(null);
|
setEditor(null);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user