Having added the CKEditor successfully to our web application, we see that it loads fine but during post-back we get a javascript error message as
uncaught exception: [CKEDITOR.editor] The instance "myCKEditor" already exists.
The error states about the existence of the CKEditor in the browser. So, we have to get rid of the ones that already exists using the following method:
<script language="javascript" type="text/javascript">
if (CKEDITOR.instances['myCKEditor']) { delete CKEDITOR.instances['myCKEditor'] };
if (CKEDITOR.instances['myCKEditor']) { CKEDITOR.instances['myCKEditor'].destroy(); }
</script>
The above code will remove the existence of the ‘myCKEditor’ editor from the browser memory and recreates it thereby resolving the issue.
Happy Programming!!!