Hello,
I am using a simple plugin, that modifies modal window for managing URL of a link. It adds new selectbox filled with several items. Data for this selectbox are stored in array called CKEDITOR.cmsfilelink.files.
However, I am using some AJAX on the page and I am modifying this array on-the-fly.
When I press the button for managing URL for the first time, all modifications done by AJAX after the page load are made and it works perfectly. However, if I close that modal, upload some more files and therefore let AJAX callback to modify that array again, the updates are not visible when I open the modal again.
I suppose that the HTML of modal window is lazyloaded and then cached. My question is, whether it is possible to destroy that instance from outside (ideally from my callback) and let ckeditor to reinstantiate it again.
Thank you.
Nevermind. I've solved it
Nevermind. I've solved it like this: