Search results

Disable drag and drop in document editor in JavaScript DocumentEditor control

06 Jun 2023 / 1 minute to read

Document Editor provides support to drag and drop contents within the component and it can be customized(enable and disable) using allowDragAndDrop property in Document editor settings.

The following example illustrates to disable the drag and drop option in DocumentEditorContainer.

Copied to clipboard
let container: DocumentEditorContainer = new DocumentEditorContainer({ enableToolbar: true, height: '590px', documentEditorSettings: { allowDragAndDrop: false } });

Note: Default value of allowDragAndDrop property is true.

The following example illustrates to disable the drag and drop option in DocumentEditor.

Copied to clipboard
let editor: DocumentEditor = new DocumentEditor({ height: '590px', documentEditorSettings: { allowDragAndDrop: false } });

Note: Default value of allowDragAndDrop property is true.