79474538

Date: 2025-02-28 04:56:25
Score: 1.5
Natty:
Report link

what you can do is add a click event to your ckeditor and assign below method and check what element class draggable=true is getting added. (Ck ediotr adds this attribute in dom)

restrictEvent() {

document.querySelectorAll(".parent-element-class 
 .element-class").forEach(element => {
  element.addEventListener("dragstart", (event) => {
    event.preventDefault();
    event.stopPropagation();
    console.log("drag started");
  });
});

}

Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): what you can
  • Low reputation (1):
Posted by: Pankaj Chaudhari