I've successfully configured my CKEditor together with CKFinder, so when I try to browse images it actually works. Except when I select a image, and want it to "pop-in" to the editor, nothing happens.
I had problem with this previously with the KCFinder, and couldnt solve it, so now I tried with the latest CKFinder and CKEditor, but cannot get it to work.
Basicly when I dblclick a image in the CKFinder-browser nothing happens. I've tested this in Chrome, Firefox and IE.
In the document this is my html and javascript:
And JS:
I dont know where to look for a solution, I've google it alot and cannot find anyone who has the same error as me.
In the ckfinder.html I've removed some JS to make it work: (line #108)
When I removed that content, the filebrowser worked, except the insert-function to the actual editor. The "popup-window" is just blank.
I had problem with this previously with the KCFinder, and couldnt solve it, so now I tried with the latest CKFinder and CKEditor, but cannot get it to work.
Basicly when I dblclick a image in the CKFinder-browser nothing happens. I've tested this in Chrome, Firefox and IE.
In the document this is my html and javascript:
<textarea id="editor" class="editor <?php echo $type; ?>" name="section_content"><?php echo $section_array['content']; ?></textarea>
And JS:
/* WYSIWYG */ $(".editor").each(function(some, element) { if($(this).hasClass("small")) { CKEDITOR.config.toolbar = [['Source', '-', 'Bold', 'Italic', '-', 'Link']]; CKEDITOR.config.height = 40; } else { CKEDITOR.config.toolbar = [ ['Source', '-', 'Maximize', '-', 'RemoveFormat'], ['Print', 'Undo','Redo','-','Find','Replace'], ['Format','FontSize'], ['Bold','Italic','Underline','Strike'], ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['Link','Unlink','Anchor','-', 'TextColor'], ['Table','HorizontalRule','SpecialChar','PageBreak', 'Flash', 'Image'] ]; } CKEDITOR.replace(element); });
I dont know where to look for a solution, I've google it alot and cannot find anyone who has the same error as me.
In the ckfinder.html I've removed some JS to make it work: (line #108)
case 'ckeditor': var funcNum = get( 'CKEditorFuncNum' ); /*if ( parentWindow['CKEDITOR'] ) {*/ config.selectActionFunction = function( fileUrl, data ) { parentWindow['CKEDITOR'].tools.callFunction( funcNum, fileUrl, data ); }; config.selectThumbnailActionFunction = config.selectActionFunction; //} break;
When I removed that content, the filebrowser worked, except the insert-function to the actual editor. The "popup-window" is just blank.
Re: CKEditor wont accept image-url from CKFinder
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!