mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: add WebPreviews blocks
This commit is contained in:
parent
b1c4ddd0b7
commit
8d3ede1486
11 changed files with 482 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ import {
|
|||
Video,
|
||||
List,
|
||||
ListOrdered,
|
||||
Globe,
|
||||
} from 'lucide-react'
|
||||
import { SiYoutube } from '@icons-pack/react-simple-icons'
|
||||
import ToolTip from '@components/Objects/StyledElements/Tooltip/Tooltip'
|
||||
|
|
@ -418,6 +419,17 @@ export const ToolbarButtons = ({ editor, props }: any) => {
|
|||
<User size={15} />
|
||||
</ToolBtn>
|
||||
</ToolTip>
|
||||
<ToolTip content={'Web Preview'}>
|
||||
<ToolBtn
|
||||
onClick={() =>
|
||||
editor.chain().focus().insertContent({
|
||||
type: 'blockWebPreview',
|
||||
}).run()
|
||||
}
|
||||
>
|
||||
<Globe size={15} />
|
||||
</ToolBtn>
|
||||
</ToolTip>
|
||||
</ToolButtonsWrapper>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue