I've searched this all over the internet for 2 days continuously but to no avail.
When I used to use FCKEditor, I used to use this code and it worked just fine.
Is there a similar code for CKEditor where JavaScript is not at all required and everything can be done through PHP only.
Here's what I've found so far ...
I'm calling CKEditor and CKFinder through PHP...
and the CKEditor instance is called as ...
Problems:
I have already got a way of receiving variables in my PHP file but I'm getting nothing and nothing is being populated back into the CKEditor instance.
I will also be needing this instance to populate from the variables retreived from the DB if I edit the "Description_en" in future.
Please help? I cannot believe I'm the only person wanting to work fully in PHP and not in JS whereas FCKEditor was capable of working fully in PHP and everything worked just fine.
Best Regards,
Xeirus.
When I used to use FCKEditor, I used to use this code and it worked just fine.
<?php
$oFCKeditor = new FCKeditor('Description_en');
$oFCKeditor->BasePath = 'fckeditor/';
$oFCKeditor->Value = stripslashes($Description_en);
$oFCKeditor->Width = 540;
$oFCKeditor->Height = 400;
echo $oFCKeditor->CreateHtml();
?>Is there a similar code for CKEditor where JavaScript is not at all required and everything can be done through PHP only.
Here's what I've found so far ...
I'm calling CKEditor and CKFinder through PHP...
include_once 'ckeditor/ckeditor.php'; include_once 'ckfinder/ckfinder.php';
and the CKEditor instance is called as ...
<?php
$ckeditor = new CKEditor('Description_en');
$ckeditor->basePath = 'ckeditor/';
CKFinder::SetupCKEditor($ckeditor, 'ckfinder/');
$ckeditor->editor('CKEditor1');
$ckeditor->value = stripslashes($Description_en);
$CKEditor->config['width'] = 600;
$CKEditor->config['height'] = 400;
?>
Problems:
I have already got a way of receiving variables in my PHP file but I'm getting nothing and nothing is being populated back into the CKEditor instance.
I will also be needing this instance to populate from the variables retreived from the DB if I edit the "Description_en" in future.
Please help? I cannot believe I'm the only person wanting to work fully in PHP and not in JS whereas FCKEditor was capable of working fully in PHP and everything worked just fine.
Best Regards,
Xeirus.
