I know this topic is discussed so many times but I'm having serious problems trying to upload images.
I do everything like it is so many times described:
1. I add CKEDITOR.replace( 'ckeditor_short', { filebrowserImageUploadUrl: "/upload" } ); where ckeditor_short is the name of the editor
2. My script returns following string:
<script type=’text/javascript’>window.opener.CKEDITOR.tools.callFunction(3, ‘http://127.0.0.1:5500/static/9314b44d0d4a0b2756df09d3e3b5309f48539d461f0a8cdced2051226fa0a336973c4436d83a04c6267dd445cfb459c561212cdbbc7bcea213f63e7c8d81c50e’, ‘’);</script>
where 3 is funcNum and second parameter (that long url) is the url of the file.
When I press Send it to server button, my Browse button is replaced with <pre></pre> tag and my server response is inserted into pre tag and it looks like:
<pre><script type=’text/javascript’>window.opener.CKEDITOR.tools.callFunction(3, ‘http://127.0.0.1:5500/static/9314b44d0d4a0b2756df09d3e3b5309f48539d461f0a8cdced2051226fa0a336973c4436d83a04c6267dd445cfb459c561212cdbbc7bcea213f63e7c8d81c50e’, ‘’);</script></pre>
Is there something I'm doing wrong?
Thx in advance