After appending the script that calls CKEDITOR, I ran into an issue. While it loads the CKEDITOR on the HTML view, there seems to be a problem when trying to access the CKEDITOR object using JavaScript. When attempting to utilize the CKEDITOR's object, I encounter difficulties as I can't access it properly. This becomes evident when working with CKEDITOR.
var script = document.createElement("script");
script.type = "text/javascript";
script.async = false;
script.src = pathToScript;
document.getElementsByTagName("head")[0].appendChild(script);
if(CKEDITOR.instances) {
this.o_edit = CKEDITOR.instances[IdOfTextArea];
}
The CKEDITOR's instance fails to be created.
Any assistance would be greatly appreciated.
Thanks in advance.