vue的富文字編輯器

2021-09-25 17:19:57 字數 514 閱讀 4456

在 vue 專案中引入 tinymce 富文字編輯器

專案中原本使用的富文字編輯器是 wangeditor,這是乙個很輕量、簡潔編輯器

bootstrap-wysiwyg:微型,易用,小而美,只是 bootstrap + jquery…

kindeditor:功能強大,**簡潔,需要配置後台,而且好久沒見更新了

wangeditor:輕量、簡潔、易用,但是公升級到 3.x 之後,不便於定製化開發。不過作者很勤奮,廣義上和我是一家人,打個call

quill:本身功能不多,不過可以自行擴充套件,api 也很好懂,如果能看懂英文的話…

github 上星星很多,功能也齊全;

唯一乙個從 word 貼上過來還能保持絕大部分格式的編輯器;

不需要找後端人員掃碼改介面,前後端分離;

說好的兩點呢!

注意:這篇部落格僅適用於 tinymce 4.x

vue 使用 富文字編輯器

1安裝依賴 npm i quill s npm i vue quill editor s 2.上 元件 如下 template edit container 編輯器 content ref myquilleditor options editoroption blur oneditorblur ev...

vue獲取編輯器純文字 vue富文字編輯器

工具欄配置 const options bold italic underline strike 加粗 斜體 下劃線 刪除線 blockquote code block 引用 塊 1 2 級標題 有序 無序列表 上標 下標 縮排 文字方向 字型大小 標題 字型顏色 字型背景顏色 字型種類 對齊方式 ...

富文字編輯器

關於使用富文字編輯器的一些小坑 官網 1.專案 片 editor fail function xhr,editor,result custominsert function insertimg,result,editor this.editor.create this.editor.txt.html...