I developed a custom JCE plugin, that is meant to be able to be dragged and dropped.
The outer HTML is this:
<div class="jce-custom" contenteditable="false">bla</div>
And I can edit it via a modal (a bit like the codesample that you have this editor).
But with the latest JCE update (2.9.88) the tinymce.js (/media/com_jce/editor/tinymce/tinymce.js) has an addition of code that breaks my drag and drop!
At the Pro version it is at line 5046. If I comment that part it works again.
At the lite version it is at line 4514:
var content = editor.selection.getContent({
contextual: !0
});
content && (content = function(content) {
return content = DOM.create("div", {}, content), each$4(DOM.select("[style]", content), function(elm) {
var style = elm.getAttribute("style");
style && elm.setAttribute("data-mce-style", style);
}), content.innerHTML;
}(content), e.dataTransfer.setData("x-tinymce/html", content));
The error that I get when I drag is this:
Uncaught TypeError: Cannot read properties of undefined (reading 'setData')
at tinymce.dom.DOMUtils.<anonymous> (tinymce.js?1b35178c34959337c60cba275a087ef0:5055:48)
Could you take a look a this? (will commenting this part break something?)
