Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
handleDragStart = event => {
const {editor} = this.props
this._editorNode = ReactDOM.findDOMNode(editor)
this.setState({isDragging: true})
this.addDragHandlers()
const element = ReactDOM.findDOMNode(this.previewContainer)
const encoded = Base64.serializeNode(this.props.node, {preserveKeys: true})
setTransferData(event.dataTransfer, TRANSFER_TYPES.NODE, encoded)
event.dataTransfer.effectAllowed = 'move'
event.dataTransfer.setDragImage(element, element.clientWidth / 2, -10)
}
handleDragStart = event => {
const {editor} = this.props
this._editorNode = ReactDOM.findDOMNode(editor)
this.setState({isDragging: true})
this.addDragHandlers()
const element = ReactDOM.findDOMNode(this.previewContainer)
const encoded = Base64.serializeNode(this.props.node, {preserveKeys: true})
setTransferData(event.dataTransfer, TRANSFER_TYPES.NODE, encoded)
event.dataTransfer.effectAllowed = 'move'
event.dataTransfer.setDragImage(element, element.clientWidth / 2, -10)
}