chore(react/type_widgets): set up image opening

This commit is contained in:
Elian Doran 2025-09-25 18:22:58 +03:00
parent 8a442ba492
commit 7af610a5b4
No known key found for this signature in database

View File

@ -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();
}}
/>}