1
0
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:
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()
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>