mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: Enhance EmbedObjectsComponent with YouTube support and responsive design, overall improvements
This commit is contained in:
parent
632cc79838
commit
5dd9d5d749
2 changed files with 351 additions and 52 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue