Hi,
This my first post. We have fckeditor in place but are trying to move to ckeditor. Currently, fckeditor is called by php which I have included below.
I understand that switching to a ckeditor version will mean loading the javascript file and using the ck API, but I am not sure about actually loading the editor box on the page.
Any pointers would be appreciated as I am not a developer.
First with an include:
And then and API:
And then the PHP:
This my first post. We have fckeditor in place but are trying to move to ckeditor. Currently, fckeditor is called by php which I have included below.
I understand that switching to a ckeditor version will mean loading the javascript file and using the ck API, but I am not sure about actually loading the editor box on the page.
Any pointers would be appreciated as I am not a developer.
First with an include:
include("/home/smith/web/home/fckeditor/fckeditor.php") ;
And then and API:
window.onload=load_text function send_text() { //alert('ok'); var oEditor = FCKeditorAPI.GetInstance('edit_box'); var strOutText = oEditor.GetXHTML(true); self.opener.document.forms['<?php echo $frm; ?>'].elements['<?php echo $fld; ?>'].value = strOutText; self.close(); } function load_text() { //alert('ok'); var strInText=self.opener.document.forms['<?php echo $frm; ?>'].elements['<?php echo $fld; ?>'].value var oEditor = FCKeditorAPI.GetInstance('edit_box'); //oEditor.focus(); oEditor.InsertHtml(" "); oEditor.InsertHtml(strInText); }
And then the PHP:
<?php //html editor $oFCKeditor = new FCKeditor('edit_box'); $oFCKeditor->BasePath = '/fckeditor/'; //$oFCKeditor->Value = ""; $oFCKeditor->Width = 770; $oFCKeditor->Height = 450; $oFCKeditor->ToolbarSet = 'Basic'; //$oFCKeditor->Value =html_entity_decode($row['edit_box']); echo $oFCKeditor->CreateHtml(); ?>
Re: fck php code translate to ckeditor code help
and