mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-01-19 06:18:16 +01:00
Fix InsertImageButton in image example (#3210)
This commit is contained in:
parent
12d21eac2d
commit
5a8a5dcdcf
@ -128,7 +128,7 @@ const InsertImageButton = () => {
|
||||
event.preventDefault()
|
||||
const url = window.prompt('Enter the URL of the image:')
|
||||
if (!url) return
|
||||
editor.exec({ type: 'insert_url', url })
|
||||
editor.exec({ type: 'insert_image', url })
|
||||
}}
|
||||
>
|
||||
<Icon>image</Icon>
|
||||
|
Loading…
x
Reference in New Issue
Block a user