CKEditor5富文本编辑器官方地址
Vue 的一个更简单的解决方案 - 只需@ready="onReady"在ckeditor组件和onReady方法中监听:
onReady(event) {
console.log(Array.from(event.ui.componentFactory.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 ));
}
}
}