mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
@@ -365,6 +365,9 @@ export default class Image extends SimpleImage {
|
||||
({ getPos, view }: ComponentProps) =>
|
||||
() => {
|
||||
const { commands } = this.editor;
|
||||
if (!commands.editDiagram) {
|
||||
return;
|
||||
}
|
||||
const pos = getPos();
|
||||
const $pos = view.state.doc.resolve(pos);
|
||||
view.dispatch(view.state.tr.setSelection(new NodeSelection($pos)));
|
||||
|
||||
Reference in New Issue
Block a user