Hello,
I set up a drag and drop in the document editor.
It works well but I manage to drop some text in an area protected by a password and therefore in principle not editable...
Here's a code snippet:
onDrop (event) {
console.log (`Drop content`, event)
var text = event.dataTransfer.getData ('Text'). replace (/ \ n / g, '') .replace (/ \ r / g, '') .replace (/ \ r \ n / g, '' )
this.documenteditorcontainer.documentEditor.selection.select ({x: event.offsetX, y: event.offsetY, extend: false})
this.documenteditorcontainer.documentEditor.editor.insertText (text)
}
Thank you in advance for your response.
Regards,
Christophe