1
0
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:
Urban Etter
2019-12-03 16:59:50 +01:00
committed by Ian Storm Taylor
parent 12d21eac2d
commit 5a8a5dcdcf

View File

@@ -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>