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