From 1405def25dcee99001e833033aff995b01a6dc79 Mon Sep 17 00:00:00 2001 From: Henry Heino <46334387+personalizedrefrigerator@users.noreply.github.com> Date: Tue, 7 Nov 2023 04:07:42 -0800 Subject: [PATCH] Desktop: Fixes #7547: Fix inserting resources into TinyMCE from plugins (insertText command) (#9225) --- .../app-desktop/gui/NoteEditor/NoteBody/TinyMCE/TinyMCE.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app-desktop/gui/NoteEditor/NoteBody/TinyMCE/TinyMCE.tsx b/packages/app-desktop/gui/NoteEditor/NoteBody/TinyMCE/TinyMCE.tsx index 0865c04a34..a0cd726726 100644 --- a/packages/app-desktop/gui/NoteEditor/NoteBody/TinyMCE/TinyMCE.tsx +++ b/packages/app-desktop/gui/NoteEditor/NoteBody/TinyMCE/TinyMCE.tsx @@ -203,7 +203,7 @@ const TinyMCE = (props: NoteBodyEditorProps, ref: any) => { let commandProcessed = true; if (cmd.name === 'insertText') { - const result = await markupToHtml.current(MarkupToHtml.MARKUP_LANGUAGE_MARKDOWN, cmd.value, { bodyOnly: true }); + const result = await markupToHtml.current(MarkupToHtml.MARKUP_LANGUAGE_MARKDOWN, cmd.value, markupRenderOptions({ bodyOnly: true })); editor.insertContent(result.html); } else if (cmd.name === 'editor.focus') { editor.focus();