diff --git a/src/components/content.js b/src/components/content.js index 49de1228e..7218c87bb 100644 --- a/src/components/content.js +++ b/src/components/content.js @@ -488,11 +488,11 @@ class Content extends React.Component { */ onDrop = (event) => { + event.preventDefault() + if (this.props.readOnly) return if (!this.isInEditor(event.target)) return - event.preventDefault() - const window = getWindow(event.target) const { state, editor } = this.props const { nativeEvent } = event