mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-07-31 20:40:19 +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()
|
||||
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>
|
||||
|
Reference in New Issue
Block a user