tp5使用UEditor富文字編輯器

2021-08-28 18:54:18 字數 575 閱讀 2983

tp5使用ueditor富文字編輯器

2.開啟 ueditor.config.js 找到:

,initialframewidth:800 //初始化編輯器寬度,預設1000

,initialframeheight:320 //初始化編輯器高度,預設320

設定顯示大小

3.修改上傳路徑,應該 開啟 ueditor\php 資料夾,修改 config.json

此處我將 ueditor 的 上傳路徑改為/uploads/image//

4.我們在 tools.php 中新建 ueditor

public function ueditor()

}

5.訪問,效果如圖

第4課 tp5中如何使用ueditor

tp5環境使用ueditor時,一般把它放在public目錄下的static目錄下 開啟ueditor php config.json檔案,需要重新設定儲存的路徑。上傳的一般放在tp5的public目錄下的uploads目錄中 imagepathformat tp5 public uploads i...

使用tp5框架整合 layui富文字編輯器

一睹芳容 css css目錄 modules 模組css目錄 一般如果模組相對較大,我們會單獨提取 laydate layer default layim skin font 字型圖示目錄 images 資源目錄 一些表情等 face lay js目錄 dest 經過合併的完整模組 modules ...

tp5快取使用

引入 usethink cache 使用 options 快取型別為file type file 快取有效期為永久有效 expire 0,快取字首 prefix think 指定快取目錄 path runtime cache cache connect options if cache has th...