Hi
I have a problem...
I've two instances of CKEditor on my page: text_1 and text_2:
my php controller returns this js-code when file uploaded:
if I upload files in first instance of CKEditor - all ok
but it not work for second instance...
Can you help me?
I have a problem...
I've two instances of CKEditor on my page: text_1 and text_2:
<textarea class="ex" cols="80" id="text_1" name="text_1" rows="10">
</textarea>
<script type="text/javascript">
//<![CDATA[
CKEDITOR.replace( 'text_1' ,
{
toolbar: 'TheToolbar',
filebrowserUploadUrl : '/controller/example/upload',
filebrowserImageUploadUrl : '/controller/example/upload',
filebrowserFlashUploadUrl : '/controller/example/upload'
});
//]]>
</script>
<hr />
<textarea class="ex" cols="80" id="text_2" name="text_2" rows="10">
</textarea>
<script type="text/javascript">
//<![CDATA[
CKEDITOR.replace( 'text_2' ,
{
toolbar: 'TheToolbar',
filebrowserUploadUrl : '/controller/example/upload',
filebrowserImageUploadUrl : '/controller/example/upload',
filebrowserFlashUploadUrl : '/controller/example/upload'
});
//]]>
</script>my php controller returns this js-code when file uploaded:
<script type="text/javascript">window.parent.CKEDITOR.tools.callFunction(2, "/images/example.jpg", "");</script>
if I upload files in first instance of CKEditor - all ok
but it not work for second instance...
Can you help me?

Re: Image uploading with multiple instances of CKEditor
I read forum and understood that it's a bug, but I can send to browser other js-code
<script type="text/javascript">var CE = window.parent.CKEDITOR; CE.instances.text_en.insertHtml("<img src='/images/example.jpg' />"); CE.dialog.getCurrent().hide();</script>And then I can change properties of an image...