网站首页 > 博客文章 正文
今天给大家分享一款不错的Vue图文编辑器组件CKEditor5。
ckeditor5 基于Vue的富文本编辑框组件,易于定制,具有现代UI和基于插件的模块化体系结构,提供了原生的CKEditor 5 Vue.js集成。
总共有5种不同的风格。
@ckeditor/ckeditor5-build-classic
@ckeditor/ckeditor5-build-inline
@ckeditor/ckeditor5-build-balloon
@ckeditor/ckeditor5-build-balloon-block
@ckeditor/ckeditor5-build-decoupled-document
这里仅介绍@ckeditor/ckeditor5-build-classic,其他风格类似。
安装
$ npm i @ckeditor/ckeditor5-build-classic
引入
import ClassicEditor from '@ckeditor/ckeditor5-build-classic'
<div id="editor">
<p>Here goes the initial content of the editor.</p>
</div>
ClassicEditor
.create( document.querySelector( '#editor' ) )
.then( editor => {
console.log( editor );
} )
.catch( error => {
console.error( error );
} );
- Classic模式
- Balloon模式
- Balloon Block模式
- Inline模式
- Document模式
# 文档地址
https://ckeditor.com/docs/ckeditor5/
# 仓库地址
https://github.com/ckeditor/ckeditor5-vue
ok,今天的分享就到这里。感兴趣的话,可以去了解一下哈~
猜你喜欢
- 2024-10-02 推荐!这几款基于vue3和vite的开箱即用的中后台管理模版,拒绝加班
- 2024-10-02 几款非常好用的富文本编辑器 #富文本编辑器
- 2024-10-02 一款好用的富文本编辑器「wangeditor」运用(附源码+视频讲解)
- 2024-10-02 VUE 项目如何快速优化?| 原力计划
- 2024-10-02 Web前端培训:五种JavaScript富文本编辑器的比较
- 2024-10-02 setup语法糖:在 Vue3 中集成CKEditor富文本编辑器
- 2024-10-02 推荐五个优秀的富文本编辑器(富文本编辑器是做什么的)
- 2024-10-02 如何在Vue中使用Ueditor富文本编辑器,详情介绍如下
- 2024-10-02 VUE前端编程:富文本编辑器wangEditor 5 工具条定制
- 2024-10-02 基于 Vue 的移动端富文本编辑器 vue-quill-editor 实战
你 发表评论:
欢迎- 最近发表
- 标签列表
-
- ifneq (61)
- 字符串长度在线 (61)
- googlecloud (64)
- messagesource (56)
- promise.race (63)
- 2019cad序列号和密钥激活码 (62)
- window.performance (66)
- qt删除文件夹 (72)
- mysqlcaching_sha2_password (64)
- ubuntu升级gcc (58)
- nacos启动失败 (64)
- ssh-add (70)
- jwt漏洞 (58)
- macos14下载 (58)
- yarnnode (62)
- abstractqueuedsynchronizer (64)
- source~/.bashrc没有那个文件或目录 (65)
- springboot整合activiti工作流 (70)
- jmeter插件下载 (61)
- 抓包分析 (60)
- idea创建mavenweb项目 (65)
- vue回到顶部 (57)
- qcombobox样式表 (68)
- tomcatundertow (58)
- pastemac (61)
本文暂时没有评论,来添加一个吧(●'◡'●)