feat: Enhance EmbedObjectsComponent with YouTube support and responsive design, overall improvements

This commit is contained in:
swve 2025-02-26 11:37:29 +01:00
parent 632cc79838
commit 5dd9d5d749
2 changed files with 351 additions and 52 deletions

View file

@ -205,7 +205,7 @@ export const ToolbarButtons = ({ editor, props }: any) => {
</ToolBtn>
</ToolTip>
<ToolTip content={'YouTube video'}>
<ToolBtn onClick={() => addYoutubeVideo()}>
<ToolBtn onClick={() => editor.chain().focus().insertContent({ type: 'blockEmbed' }).run()}>
<SiYoutube size={15} />
</ToolBtn>
</ToolTip>