ckeditor4 icon indicating copy to clipboard operation
ckeditor4 copied to clipboard

destroy() does not clean up

Open cimenta opened this issue 3 years ago • 1 comments

Type of report

Bug

Provide detailed reproduction steps (if any)

STEP 1 create CKEDITOR instance STEP 2 destroy CKEDITOR instance using native method destroy()

after destroy() is called I would expect that the editor leave everything as it was before initializing the editor. Of course all the changes made in the editor would stay.

Destroys the editor instance, releasing all resources used by it. If the editor replaced an element, the element will be recovered.

  1. all internal elements will be removed like

    not sure what else editor adds

  2. all classes are removed
  3. all attributes are removed. After destroying the editor leaves the attribute contenteditable = true even though such attribute was not there before

working jsFiddle https://jsfiddle.net/radek/7jg3urtL/10/

Expected result

points 1-3 above

cimenta avatar Aug 12 '22 09:08 cimenta

Hi @cimenta

Thank you for the report. I can confirm this issue.

sculpt0r avatar Aug 17 '22 21:08 sculpt0r