Hi,
I've been using FCKeditor 2.x for a while and figured out how to insert HTML into a editor window, such as for pasting an image from an image library into an editor.
I can't figure out how to do this in CKEditor. I tend to hack my way around other people's Javascript, but with version 3 is more complex and I have no idea where to start.
My code for FCKeditor 2.x is below - from a pop-up window, the following JavaScript would execute:
In the parent editor window, I had the following:
Any pointers welcome!
Michael
I've been using FCKeditor 2.x for a while and figured out how to insert HTML into a editor window, such as for pasting an image from an image library into an editor.
I can't figure out how to do this in CKEditor. I tend to hack my way around other people's Javascript, but with version 3 is more complex and I have no idea where to start.
My code for FCKeditor 2.x is below - from a pop-up window, the following JavaScript would execute:
<script language="JavaScript"> <!-- opener.theForm.insertPicture.value = '<img src=\"/library/image.jpg\" alt=\"Test Image\" title=\"Test Image\" height=\"133\" width=\"200\" vspace=\"10\" hspace=\"10\" align=\"right\" border=\"0\" />'; opener.InsertHTML(); window.close(); --> </script>
In the parent editor window, I had the following:
<input type="hidden" name="insertPicture" value="">
Any pointers welcome!
Michael