here my javascript:
here html source:
and error:
i'm using CKEditor 3.6.1
<script> $(document).ready(function () { $("#success").delay(3000).fadeOut('slow'); $("#fail").delay(3000).fadeOut('slow'); }); function insertatcursor() { CKEDITOR.instances['editor1'].insertHTML('<a href="test.html">test</a>'); } </script>
here html source:
<img src="imageurl" onclick="insertatcursor()" />
and error:
CKEDITOR.instances.editor1.insertHTML is not a function
i'm using CKEditor 3.6.1
Re: CKEDITOR.instances.editor1.insertHTML is not a function