From 6e32cb51b6fb443eaae0eedd188cd63a13d992be Mon Sep 17 00:00:00 2001 From: Vipin Chaudhary Date: Mon, 17 Nov 2025 16:41:30 +0530 Subject: [PATCH] [WIKI-770] fix: update editor ref after editor ready #8115 --- apps/web/core/components/editor/lite-text/editor.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/web/core/components/editor/lite-text/editor.tsx b/apps/web/core/components/editor/lite-text/editor.tsx index 6ae3edf41..82e531506 100644 --- a/apps/web/core/components/editor/lite-text/editor.tsx +++ b/apps/web/core/components/editor/lite-text/editor.tsx @@ -73,6 +73,7 @@ export const LiteTextEditor = React.forwardRef(null); // editor flaggings const { liteText: liteTextEditorExtensions } = useEditorFlagging({ workspaceSlug: workspaceSlug?.toString() ?? "", @@ -95,7 +96,7 @@ export const LiteTextEditor = React.forwardRef(ref) ? ref.current : null; + return (
{ + if (ready) { + setEditorRef(isMutableRefObject(ref) ? ref.current : null); + } + }} mentionHandler={{ searchCallback: async (query) => { const res = await fetchMentions(query);