百度富文字編輯器的使用

2022-06-22 17:42:12 字數 737 閱讀 4602

注:如果是 vue-cli2 則把檔案放在 status 資料夾下面

(3)在vue 專案中使用:

import vueueditorwrap from 'vue-ueditor-wrap'

msg: '你好啊', //獲取富文字中的資訊 以html 格式傳送

myconfig: ,

(4)基本上,到上面那一步,就能出線乙個富文字編輯器了,但是可能你會用不到這麼多,所以可以自定義功能,具體檔案位置在public\ueditor\ueditor.config(5) 如果需要自定義表情,那麼只需要更改下面檔案就行:public\ueditor\dialogs\emotion

(5)當然需要配置和自帶表情一樣格式的:public\ueditor\dialogs\emotion/images

配置好之後,那麼就可以看到如下效果:

百度富文字編輯器的使用

一 引用富文字編輯器的js檔案 二 富文字編輯器html 三 js配置富文字編輯器 var ue ue.geteditor intro 注意事項 intro為文字域的id 例項化編輯器的id的容器上 initialframewidth 富文字顯示的寬度 initialframeheight 富文字顯...

百度UEditor富文字編輯器

修改上傳的路徑 解壓出來 ueditor php config.json 中修改 二 模板中呼叫 1 html 2 js var ue ue.geteditor container 注意這個要一對一 三,讓自適應100 開啟 ueditor ueditor.config.js 找到initialfr...

vue ueditor百度富文字編輯器

前言 無需main.js或頁面全域性或區域性引入,直接使用cdn將ueditor作為vue元件 使用 import editor from 你的component路徑 editor.vue 使用 import editor from 你的component路徑 editor.vue export d...