Hi there.
I have this PHP code of working CKEditor. Please, how can i integrate CKFinder into this code?
I spent few hours and i couldn`t find anything...
I have this PHP code of working CKEditor. Please, how can i integrate CKFinder into this code?
I spent few hours and i couldn`t find anything...
$initialValue = '<p>This is some <strong>sample text</strong>.</p>';
include_once "./3rd/ckeditor/ckeditor.php";
$CKEditor = new CKEditor();
$CKEditor->basePath = '/3rd/ckeditor/';
$CKEditor->editor("editor1", $initialValue);
Re: How to integrate CKFinder into CKEditor in PHP ?
# CKEditor: / CKFinder print '<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>'; print '<script type="text/javascript" src="/ckfinder/ckfinder.js"></script>'; # user page: fill content into editor textarea print '<textarea id="editor1" name="editor1" cols="80" rows="25">'; print $usercontent; print '</textarea>'; print '<script type="text/javascript">'; # CKEditor: define CKEditor print 'var editor = CKEDITOR.replace("editor1");'; # html generation: full HTML page (with <html>, <head> and <body> tags) print 'CKEDITOR.config.fullPage = true;'; # toolbar: define toolbar print "CKEDITOR.config.toolbar =" . "[" . # "['Source','-','Save','-','Preview','-','Templates']," . "['Source','-','Save','-','Preview']," . "['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt']," . "['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat']," . "['Link','Unlink','Anchor']," . "['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak']," . "['ShowBlocks']," . "'/'," . "['Styles','Format','Font','FontSize']," . "['TextColor','BGColor']," . "['Bold','Italic','Underline','Strike','-','Subscript','Superscript']," . "['NumberedList','BulletedList','-','Outdent','Indent','Blockquote']," . "['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock']," . "];"; # Automaticaly enable the "show block" command when the editor loads. print 'CKEDITOR.config.startupOutlineBlocks = true;'; # CKFinder: define CKFinder print 'CKFinder.SetupCKEditor(editor, "/ckfinder/");'; # CKEditor: maximize CKEditor print 'CKEDITOR.on("instanceReady", function(evt) {evt.editor; editor.execCommand("maximize");});'; print '</script>';Re: How to integrate CKFinder into CKEditor in PHP ?
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
CKEditor CKFinder Integration using PHP (Most Easy Way)
Quit good Reference:http://dwij.co.in/ckeditor-ckfinder-integration-using-php/