⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

What about file\image uploading in CKEditor?



CJRoman
  • profile picture
  • Member

Posted 07 November 2012 - 12:13 PM

Hi everybody.

How can I configure file uploading in CKEditor? Maybe with plugins "from box", or side plugins, maybe somebody have already done this thing.

There is free script KCFinder (CKFinder analogue), which integrates perfectly, but there is security problems.

tlc033
  • profile picture
  • Member

Posted 09 November 2012 - 16:32 PM

[b] [size=4]Integrating FCKEditor FileManager in CKEditor[/size][/b]

Try this:
http://www.mixedwaves.com/2010/02/integrating-fckeditor-filemanager-in-ckeditor/

tlc033
  • profile picture
  • Member

Posted 26 November 2012 - 16:58 PM

I find a solution.

1. Edit ckeditor / config.js

 CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';

// added code for ckfinder ------>
config.filebrowserBrowseUrl = '/assets/grocery_crud/texteditor/ckfinder/ckfinder.html';
config.filebrowserImageBrowseUrl = '/assets/grocery_crud/texteditor/ckfinder/ckfinder.html?type=Images';
config.filebrowserFlashBrowseUrl = '/assets/grocery_crud/texteditor/ckfinder/ckfinder.html?type=Flash';
config.filebrowserUploadUrl = '/assets/grocery_crud/texteditor/ckfinder/core/connector /php/connector.php?command=QuickUpload&type=Files';
config.filebrowserImageUploadUrl = '/assets/grocery_crud/texteditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images';
config.filebrowserFlashUploadUrl = '/assets/grocery_crud/texteditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash';
// end: code for ckfinder ------>
};


2. Download CKFinder 2.2 http://www.filedropper.com/ckfinder

and copy it to the same folder with
ckeditor
markitup
...
ckfinder

This zip is with license for CKFinder for diferent hosts.