I'm currently working on a project where I need to implement drag and drop functionality for html elements onto a CKeditor instance. The main challenge I am facing is finding a way to detect the drop event in order to remove the dropped element from the editor. Even though there is a 'paste' event available, it does not get triggered by the drop action.
Below is a simple test case using the CKeditor jquery adapter:
// initializing the CKeditor instance
$('#editor1').ckeditor();
var editor = $('#editor1').ckeditorGet();
// retrieving a list of all available events that can be listened for
console.log(editor._.events);
// example of how to listen for an event
editor.on("someEvent", function(e) {
console.log(e);
});
Despite my efforts, I have not been able to find any information in the documentation that addresses this issue.
Do you have any insights or suggestions on how to approach this?