虚位以待(AD)
虚位以待(AD)
首页 > CMS教程 > Ecshop > ecshop调用自带的FCKeditor编辑器方法

ecshop调用自带的FCKeditor编辑器方法
类别:Ecshop   作者:码皇   来源:互联网   点击:

在对应的文件引入fckeditor相关封装类文件:php代码:require_once(ROOT_PATH "includes fckeditor fckeditor php"); 创建编辑框,为模板页面传值php代码: * 创建 html editor * create_html_editor( F ,魔客吧
在对应的文件引入fckeditor相关封装类文件:

[代码]php代码:

    require_once(ROOT_PATH . "includes/fckeditor/fckeditor.php");

创建编辑框,为模板页面传值

[代码]php代码:

    /* 创建 html editor */ create_html_editor('FCKeditor1');

在模板里面要调用编辑的地方加入,接受PHP页面传来的编辑框值:

[代码]xml代码:

    {
    $FCKeditor}

即可。

点击提交按钮之后,接受提交值的页面接受值方法:

[代码]php代码:

    $_POST[FCKeditor1]

在信息编辑页面,传入数据库中已存在的编辑器提交过的值的方法:

[代码]php代码:

    /* 创建 html editor */ create_html_editor('FCKeditor1',$user_info['content']);
$user_info['content']为数据库中查询到的编辑过的值。




相关热词搜索: ecshop调用自带的FCKeditor编辑器方法