Hi all,
I'm trying to integrate CKFinder in my CKeditor. I'm not very good at PHP.
This is my HTML page with the CKEditor:
I've tried the code below, and then I was able to see the "file upload" tab when I clicked the "Image" button in the toolbar, but then I couldn't save the new content to my database:
Can someone PLEASE help me how to do this the right way?
I'm trying to integrate CKFinder in my CKeditor. I'm not very good at PHP.
This is my HTML page with the CKEditor:
<form action="website_opslaan.php" method="post" name="opslaan" id="opslaan" > <textarea class="ckeditor" name="editor1" id="editor1"><?php echo $inhoud; ?></textarea> <input type="submit" name="f_opslaan" value="Pagina opslaan" /> </form>
I've tried the code below, and then I was able to see the "file upload" tab when I clicked the "Image" button in the toolbar, but then I couldn't save the new content to my database:
<form action="website_opslaan.php" method="post" name="opslaan" id="opslaan" > <?php include_once '../ckeditor/ckeditor.php' ; require_once '../ckfinder/ckfinder.php' ; $ckeditor = new CKEditor( ) ; $ckeditor->basePath = '../ckeditor/' ; // Just call CKFinder::SetupCKEditor before calling editor(), replace() or replaceAll() // in CKEditor. The second parameter (optional), is the path for the // CKFinder installation (default = "/ckfinder/"). CKFinder::SetupCKEditor( $ckeditor, '../ckfinder/' ) ; $ckeditor->editor('CKEditor1', $inhoud); $nieuwe_inhoud = $ckeditor->editor('CKEditor1'); ?> <input type="submit" name="f_opslaan" value="Pagina opslaan" /> </form>
Can someone PLEASE help me how to do this the right way?
Re: CKFinder integration with CKEditor