mirror of
https://github.com/zadam/trilium.git
synced 2026-01-04 05:34:30 +01:00
chore(react/type_widgets): set up image opening
This commit is contained in:
parent
8a442ba492
commit
7af610a5b4
@ -9,7 +9,7 @@ import "./EditableText.css";
|
||||
import { CKTextEditor, ClassicEditor, EditorWatchdog, TemplateDefinition } from "@triliumnext/ckeditor5";
|
||||
import Component from "../../../components/component";
|
||||
import options from "../../../services/options";
|
||||
import { loadIncludedNote, refreshIncludedNote } from "./utils";
|
||||
import { loadIncludedNote, refreshIncludedNote, setupImageOpening } from "./utils";
|
||||
import getTemplates, { updateTemplateCache } from "./snippets.js";
|
||||
import appContext from "../../../components/app_context";
|
||||
import link, { parseNavigationStateFromUrl } from "../../../services/link";
|
||||
@ -220,6 +220,10 @@ export default function EditableText({ note, parentComponent, ntxId, noteContext
|
||||
}
|
||||
}
|
||||
|
||||
if (containerRef.current) {
|
||||
setupImageOpening(containerRef.current, false);
|
||||
}
|
||||
|
||||
initialized.current.resolve();
|
||||
}}
|
||||
/>}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user