Hello everyone,
I would like to know if there is a way to integrate content in CKEditor via drag & drop?
In fact I wish I could drag a span in my cke and the contents of my span is reflected in the cke.
I do that but it's not very functional and I get errors in the console :
$(".tag").draggable({ revert: true });
$("body").on({
// on commence le drag
dragstart: function(e) {
$this = $(this);
//$this.css('opacity', '0.5');
// on garde le texte en mémoire (A, B, C ou D)
e.dataTransfer.setData('text', $this.text());
},
// on passe sur un élément draggable
dragenter: function(e) { e.preventDefault(); },
// on quitte un élément draggable
dragleave: function(e) { e.preventDefault(); },
// déclenché tant qu on a pas lâché l élément
dragover: function(e) { e.preventDefault(); },
// on lâche l élément
drop: function(e) { e.preventDefault(); },
// fin du drag (même sans drop)
dragend: function() {
//$(this).css('opacity', '1');
}
}, ".tag");
If someone could point me to a solution of drag & drop HTML element to CKEditor, that would be great!
Note that I use JQuery.
Thank you!

Work on drag & drop support
Work on drag & drop support is ongoing, you can follow the umbrella ticket here: https://dev.ckeditor.com/ticket/11437
This feature should be available in the next major release, CKEditor 4.5.
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!
Okay! Thank you, I hope this
Okay! Thank you, I hope this release coming soon!