mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-07-31 12:30:11 +02:00
Fix InsertImageButton in image example (#3210)
This commit is contained in:
committed by
Ian Storm Taylor
parent
12d21eac2d
commit
5a8a5dcdcf
@@ -128,7 +128,7 @@ const InsertImageButton = () => {
|
|||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
const url = window.prompt('Enter the URL of the image:')
|
const url = window.prompt('Enter the URL of the image:')
|
||||||
if (!url) return
|
if (!url) return
|
||||||
editor.exec({ type: 'insert_url', url })
|
editor.exec({ type: 'insert_image', url })
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Icon>image</Icon>
|
<Icon>image</Icon>
|
||||||
|
Reference in New Issue
Block a user