Skip to content

Commit 97787e0

Browse files
committed
Fix: block drag and drop of images.
1 parent f0ca24f commit 97787e0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

client/src/tinymce-config.mts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@ export const init = async (
115115
// See
116116
// [License key](https://www.tiny.cloud/docs/tinymce/latest/license-key).
117117
license_key: "gpl",
118+
// Block drag-and-drop of unsupported images and files. See the
119+
// [docs](https://www.tiny.cloud/docs/tinymce/latest/file-image-upload/#block_unsupported_drop).
120+
block_unsupported_drop: true,
121+
// Prevent drag-and-dropping images; this create a mess. See the
122+
// [docs](https://www.tiny.cloud/docs/tinymce/latest/copy-and-paste/#paste_data_images).
123+
paste_data_images: false,
118124

119125
// ### Settings for plugins
120126
//

0 commit comments

Comments
 (0)