Log in or register to post comments
Last post
!!!Switching from FCK to CK Editor...HELP!!!
I have FCK Editor in my main directory and am accessing it with this include file and this script:

<? include("../FCKeditor/fckeditor.php"); ?>

<?
$oFCKeditor = new FCKeditor('stuff') ;
$oFCKeditor->BasePath = '../FCKeditor/' ;
$oFCKeditor->Value = $stuff ;
$oFCKeditor->Create() ;
?>


and

<?
$oFCKeditor = new FCKeditor('stuff') ;
$oFCKeditor->BasePath = '../FCKeditor/' ;
$oFCKeditor->Value = '' ;
$oFCKeditor->Create() ;
?>


I have been trying to get CK Editor to work with no luck. I am using FCK 2.4.3 and I am afraid it could be causing me some potential vulnerabilities.

How can I modify this code to work with the CK Editor and do I need to put CK inside or outside the root?

Thanks in advance for all the help!
Re: !!!Switching from FCK to CK Editor...HELP!!!
Any help would be greatly appreciated. I am a novice compared to many of the editor gurus on here.
Re: !!!Switching from FCK to CK Editor...HELP!!!
Check _samples/php/replace.php distributed with CKEditor.
Use similar code in your application, just make sure you are using the correct paths:

<?php
   // Include the CKEditor class.
   include_once "../../ckeditor.php"; // < --- HERE
   // Create a class instance.
   $CKEditor = new CKEditor();
   // Path to the CKEditor directory, ideally use an absolute path instead of a relative dir.
   $CKEditor->basePath = '/ckeditor/'; // < --- HERE

?>

+ read docs:

http://docs.cksource.com/CKEditor_3.x/H ... _FCKeditor
http://docs.cksource.com/CKEditor_3.x/H ... figuration

Wiktor Walc
CTO
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+