zoukankan      html  css  js  c++  java
  • 给zencart添加一个fckeditor编辑器

    1.首先到官方网站下载 FCKeditor ,解压后上传到 Zen Cart 安装目录下的 editors/fckeditor/

    文件夹中。

    2. 打开 Zen Cart 安装目录下的 editors/fckeditor/_samples/default.html ,选择 PHP 的

    sample 测试 FCKeditor能否正常提交。

    3. 确定 Zen Cart 安装目录下的 editors/fckeditor/fckconfig.js 文件中

    var _FileBrowserLanguage = ‘php’ ;
    var _QuickUploadLanguage = ‘php’ ;

    4. 打开 Zen Cart 安装目录下

    editors/fckeditor/editor/filemanger/connectors/php/config.php,
    修改 $Config['Enabled'] 值为 true。

    5. 打开 Zen Cart 安装目录下

    editors/fckeditor/editor/filemanger/connectors/php/config.php,
    设置附加的上传目录,
    例如:
    $Config['UserFilesPath'] = ‘/up/’ ;

    6. 把 Zen Cart 安装目录下的 admin/includes/init_includes/init_html_editor.php 中的
    // $editors_list['FCKEDITOR'] = array(’desc’ => EDITOR_FCKEDITOR, ‘handler’ =>

    ‘fckeditor.php’, ’special_needs’ => ”);
    这句的注释去掉,即删掉前面的“//”。

    到此FCKeditor已安装完成。

    安装是安装好了,但是,我们得在zencart中把它调出来,否则就白搭了。
    调用fckeditor的过程如下:
    工具--》页面编辑
    然后在“文本编辑器”中选中"FCKeditor"就可以了

    最初以为是在“商店设置”-》“基本设置”-》HTML编辑器
    结果在这里选了FCKeditor,然后去添加产品,发现在fckeditor编辑器没被调用出来

  • 相关阅读:
    小伙子的毕业设计
    mongoDB
    Java面试题笔试题收集
    react-router4 介绍
    React 组件间通信 总结
    react ajax
    react应用(基于react脚手架)
    React 之 组件生命周期
    组件收集表单数据
    组件的组合使用
  • 原文地址:https://www.cnblogs.com/MichaelZhangX/p/2179447.html
Copyright © 2011-2022 走看看