Skip to content
Snippets Groups Projects
Commit 291fd84f authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

Make sure signalLater isn't called in addLineWidget when there's no editor

Closes #5221
parent 83fde415
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,6 @@ export function addLineWidget(doc, handle, node, options) {
}
return true
})
signalLater(cm, "lineWidgetAdded", cm, widget, typeof handle == "number" ? handle : lineNo(handle))
if (cm) signalLater(cm, "lineWidgetAdded", cm, widget, typeof handle == "number" ? handle : lineNo(handle))
return widget
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment