Hi,
Is there a way to insert into the editor from outside of it? I have an upload form in my page, and I would like to be able to click a link that inserts the path to the image I uploaded into the editor.
Basically, I'm trying to integrate 2 different plugins for a CMS (one implements the ckeditor, the other one, the image uploading).
I've tried adding the following to the javascript function that is triggered when the "insert image" is clicked:
But I get an error that editor1 is undefined. I just can't find the editor instance.
Thanks
Is there a way to insert into the editor from outside of it? I have an upload form in my page, and I would like to be able to click a link that inserts the path to the image I uploaded into the editor.
Basically, I'm trying to integrate 2 different plugins for a CMS (one implements the ckeditor, the other one, the image uploading).
I've tried adding the following to the javascript function that is triggered when the "insert image" is clicked:
CKEDITOR.instances.editor1.insertHtml( '<img src="blah.jpg" alt="more blah" />' );
But I get an error that editor1 is undefined. I just can't find the editor instance.
Thanks
Re: Insert into editor from outside editor
Re: Insert into editor from outside editor
I tried:
but I got an Undefined.
Re: Insert into editor from outside editor
That gives you the editor name, then you can just use that name as: