200字范文,内容丰富有趣,生活中的好帮手!
200字范文 > 如何在CKEditor5富文本编辑器中获取工具栏可用项目

如何在CKEditor5富文本编辑器中获取工具栏可用项目

时间:2022-08-23 19:12:27

相关推荐

如何在CKEditor5富文本编辑器中获取工具栏可用项目

CKEditor5富文本编辑器官方地址

Vue 的一个更简单的解决方案 - 只需@ready="onReady"在ckeditor组件和onReady方法中监听:

onReady(event) {console.log(Array.from(ponentFactory.names()));},

在vue.js中简单通过下面的示例即可实现;

import ClassicEditorfrom '@ckeditor/ckeditor5-build-classic';export default {data() {return {editor: ClassicEditor,editorData: '',editorConfig: {}},mounted() {console.log(this.editor.builtinPlugins.map( plugin => plugin.pluginName ));}}}

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。