Web Hosting Talk







View Full Version : adding text to FCKeditor


bambinou
04-05-2010, 03:02 PM
Hi,

I have this code here:

<?
$oFCKeditor = new FCKeditor('FCKeditor') ;
$oFCKeditor->ToolbarSet = 'NoSmiley';
$oFCKeditor->Value = unspecialChar(stripslashes($review_text));
$oFCKeditor->BasePath = $path["webroot"]."common/richtext/";
$oFCKeditor->Width = '100%' ;
$oFCKeditor->Height = '300' ;
$oFCKeditor->Create() ;
?>

I would like to add some text just below the $oFCKeditor->Create() ;, how do I do that please?
Shall I use an echo statement?


Thanks,

BamBam

Host Ahead
04-06-2010, 05:54 PM
Where do you want to add the text? To the FCK editor or to your page.
In case of FCK you will have to set a property on the object (probably named Text, I've used this in .NET) or either traverse the DOM with javascript.

Otherwise, I think indeed you need to use an echo statement (not a PHP programmer, so if anyone can correct or confirm this ...)

bambinou
04-06-2010, 07:41 PM
Thanks,

I tried with an echo statements but I get an error...

Host Ahead
04-08-2010, 09:07 AM
Could you post the syntax you used?
I'm not a PHP programmer as I said, but maybe someone can help you out here.

bambinou
04-08-2010, 09:54 AM
Hi,

It is ok, I have found a solution to the problem, all sorted, thank you for your help,


BamBam