zoukankan      html  css  js  c++  java
  • 配置fckeditor

    目录结构为,http://localhost/admin/index.php/

    <?php include 'fckeditor/fckeditor.php';
    $BasePath = ("../fckeditor/");      $BasePath = (site_url('fckeditor/')); //ci下的绝对路径,更多适用
    $oFCKeditor = new FCKeditor("FCKeditor1");
    $oFCKeditor->BasePath = $BasePath;
    $oFCKeditor->Width = '100%'; // 编辑器宽度,类中有默认值,如果不想修改可不管此项
    $oFCKeditor->Height= '400'; //
    $oFCKeditor->Create();

    ?>

    然后修改fckeditor下,filemanager下,connectors下,php下,config.php文件,

    $Config['Enabled'] = true ;

    // Path to user files relative to the document root.
    $Config['UserFilesPath'] = '/upload/' ;

    目录在网站根目录下,建立upload文件夹。

  • 相关阅读:
    缓存
    vue 生命周期:
    mongodb 数据库 增删改查
    微信小程序左右分类滚动列表
    4月29日记
    什么是MVVM
    什么是mvc
    React路由
    TodoList案例
    React中兄弟组件传值
  • 原文地址:https://www.cnblogs.com/sdgtxuyong/p/7240816.html
Copyright © 2011-2022 走看看