From b79043ba1a270b4ef2b978a6677144db09fed34c Mon Sep 17 00:00:00 2001 From: "Carlos (Almeira)" Date: Wed, 1 Jul 2026 19:13:07 -0500 Subject: [PATCH] Fix Tiptap video node insertion for media library videos --- src/components/dashboard/RichTextEditor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/dashboard/RichTextEditor.tsx b/src/components/dashboard/RichTextEditor.tsx index 750c458..d0a7f6e 100644 --- a/src/components/dashboard/RichTextEditor.tsx +++ b/src/components/dashboard/RichTextEditor.tsx @@ -76,7 +76,7 @@ const MenuBar = ({ editor }: { editor: any }) => { const handleMediaInsert = (fileId: string, url?: string, tipo?: string) => { if (url) { if (tipo === 'video') { - editor.chain().focus().insertContent({ type: 'videoNode', attrs: { src: url } }).run(); + editor.chain().focus().insertContent(``).run(); } else { editor.chain().focus().setImage({ src: url }).run(); }