Skip to content
Snippets Groups Projects
Commit 8e8c0eb1 authored by john's avatar john
Browse files

reposition comments when inserting an image

parent c54066c3
No related branches found
No related tags found
No related merge requests found
......@@ -39,12 +39,20 @@ class ImageComponent extends BlockNodeComponent {
return el
}
// TODO -- extend state
onUploadStarted () {
this.setState({ uploading: true })
}
onUploadFinished () {
this.setState({})
const editor = this.getEditor()
editor.emit('ui:updated')
}
getEditor () {
return this.context.controller
}
onUploadFailed () {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment