2011-09-19 18:24:32 - Article

ckeditor to upload images

Content.exe

A few posts on how to do this, and a lot of frustrated people so here is how:

Download both ckeditor and ckfinder.

Decompress them into the root directory.

Include them in your php

include_once ‘ckeditor/ckeditor.php’;
include_once ‘ckfinder/ckfinder.php’;

hopefully no error messages? ok cool…. now simply

basePath = '/ckeditor/';
$ckeditor->config['filebrowserBrowseUrl'] = '/ckfinder/ckfinder.html';
$ckeditor->config['filebrowserImageBrowseUrl'] = '/ckfinder/ckfinder.html?type=Images';
$ckeditor->config['filebrowserFlashBrowseUrl'] = '/ckfinder/ckfinder.html?type=Flash';
$ckeditor->config['filebrowserUploadUrl'] = '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files';
$ckeditor->config['filebrowserImageUploadUrl'] = '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images';
$ckeditor->config['filebrowserFlashUploadUrl'] = '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash';
$ckeditor->editor('CKEditor1');

?>

To add the field to the form.

Ensure that in ckfinder/userfiles is writable

You also need to alter in ckfinder/userfiles/config.php the function CheckAuthentication(), to return true, take note of the warning!!

ive put it all together in one zip file displaying the submission here

Comments.log - 0 entries

Leave a Response

System Notice: Your email address will not be published. Required fields are marked with *

LOADING...
Initializing CyberDev systems...