xdan / jodit

Jodit - Best WYSIWYG Editor for You
https://xdsoft.net/jodit/
MIT License
1.66k stars 350 forks source link

enableDragAndDropFileToEditor setting does not work #1077

Open trymeouteh opened 7 months ago

trymeouteh commented 7 months ago

Jodit Version: 4.0

Browser: FF OS: Linux Is React App: False

Code

<link rel="stylesheet" href="node_modules/jodit/es2021/jodit.min.css">

<textarea id="myEditor"></textarea>

<script src="node_modules/jodit/es2021/jodit.min.js"></script>

<script>
    Jodit.make('#myEditor', {
        enableDragAndDropFileToEditor: false
    });
</script>

Expected behavior: Dragging a JPG image from one window into the Jodit edit, will do nothing

Actual behavior: Dragging a JPG image from one window into the Jodit edit, embeds the image in the editor