I am using FCKeditor as a way to enter rich text info into a database. I wanting to call back the info from the database to say for example, edit the post or make corrections or so forth.
Has anyone implemented such a system or can they provide some information about what is necessary to load information into the editor other than using the regular cut & paste method?
Thanks
Has anyone implemented such a system or can they provide some information about what is necessary to load information into the editor other than using the regular cut & paste method?
Thanks
Re: Loading Content into FCKeditor
$oFCKeditor->Value = $value;
Complete,
$oFCKeditor = new FCKeditor( $field[1] ) ;
$oFCKeditor->BasePath = 'fckeditor/' ;
$oFCKeditor->ToolbarSet = 'mine' ;
$oFCKeditor->Height = $field[3] ;
$oFCKeditor->Width = 450 ;
$oFCKeditor->Value = $value;
$oFCKeditor->Create() ;
Re: Loading Content into FCKeditor
If you need to do an initial load just after the editor is instantiated, be sure to put it in the FCKeditor_OnComplete function (see the JavaScript API documentation...)