[代码]php代码:
require_once(ROOT_PATH . "includes/fckeditor/fckeditor.php");
创建编辑框,为模板页面传值
[代码]php代码:
/* 创建 html editor */ create_html_editor('FCKeditor1');
在模板里面要调用编辑的地方加入,接受PHP页面传来的编辑框值:
[代码]xml代码:
{
$FCKeditor}
即可。
点击提交按钮之后,接受提交值的页面接受值方法:
[代码]php代码:
$_POST[FCKeditor1]
在信息编辑页面,传入数据库中已存在的编辑器提交过的值的方法:
[代码]php代码:
$user_info['content']为数据库中查询到的编辑过的值。/* 创建 html editor */ create_html_editor('FCKeditor1',$user_info['content']);