I am using inline CKEditor in my website. Sometimes the CKEditor works fine, but sometimes the font-size drop-down does not appear on click of the select box. After refreshing the page 2-3 times, the drop-down appears.
The editors are added after page load through ajax and sometimes there can be multiple editors.
Can anyone please tell me why this issue occurs and how can I fix it.
Thanks in advance.
Regards,
Neha
That sometimes happens when, the CKEditor is replaced with same element more than once. Try to destroy the editor while reloading for same element, using CKEDITOR.instances.editor1.destroy();
, where editor1
is your current editor.
For more info see destroy
Update
and if you have multiple CK Editor instances you can destroy them by:
for (instance in CKEDITOR.instances) {
CKEDITOR.instances[instance].destroy();
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.