Opened 14 years ago

Closed 11 years ago

#6697 closed Bug (fixed)

Non-editable content duplicated on drag-n-drop

Reported by: Dinu Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Discussion Cc:



  • insert <span contenteditable="false">Some<a href="xxx">Link</a>Text</span>
  • IE: drag-n-drop of wrapper rectangle works; drag-n-drop selection duplicates content with <a>...</a> stripped (text mode-like)
  • Firefox: you can drag just the <a> element; a copy is made with all enclosing tags kept (html duplicate)
  • Chrome: worst case: the <a> is duplicated with no enclosing tags

IMO, when drag-and-dropping non-editable blocks, the following should happen:

  • the block be moved, not copied, in full
  • if such reason exists to duplicate content, it should either be a full copy of the non-editable tag or IE-style sanitized text duplication of fragments. Since the whole idea of having noneditable sections is to allow developer fixed-format fragments to be inserted, any different behavior will break functionality.

Change History (2)

comment:1 Changed 14 years ago by Garry Yao

Keywords: Discussion added

Make sense, but not sure we could unify the D&D behavior in all browsers.

comment:2 Changed 11 years ago by Piotrek Koszuliński

Resolution: fixed
Status: newclosed

We fixed this partially in CKEditor 4.3 and the remaining one is #11164. Also, note that widget can have a mask which will cover all its content, preventing from any other bugs to occur. See:!/api/CKEDITOR.plugins.widget.definition-property-mask

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy