Opened 12 years ago
Closed 12 years ago
#9862 closed Bug (invalid)
The editor instance "xxxx" is already attached to the provided element
Reported by: | rollyourpuzzle | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
When i reload Ckeditor by using "CKEDITOR.inlineAll", i have one error "The editor instance "xxxx" is already attached to the provided element". The dialog box of ckeditor is broken after this error.
To fix it, i had this code at the begining of the function CKEDITOR.inlineAll
"for(name in CKEDITOR.instances)
{
CKEDITOR.instances[name].destroy();
}"
If you want to reload editors, then you need to destroy them first. So you need this kind of loop before you call
CKEDITOR.inlineAll
.