You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import Plugin from "@ckeditor/ckeditor5-core/src/plugin";
import ButtonView from "@ckeditor/ckeditor5-ui/src/button/buttonview";
as soon as I introduce these two, an error will be reported
master file
<template><div><ckeditor
:editor="editor"
v-model="editorData"
:config="editorConfig"></ckeditor></div></template><script>importClassicEditorfrom"@ckeditor/ckeditor5-build-classic";importCKEditorfrom"@ckeditor/ckeditor5-vue2";importCustomButtonfrom"./CustomButton";// 引入自定义按钮插件exportdefault{components: {ckeditor: CKEditor.component,},data(){return{editor: ClassicEditor,editorData: "<p>Content of the editor.</p>",editorConfig: {toolbar: ["heading","|","bold","italic","|","bulletedList","numberedList","|","undo","redo","|","customButton",// 这里是自定义按钮],extraPlugins: [CustomButton],},};},};</script><style>
#app {margin: 20px;}</style>
import Plugin from "@ckeditor/ckeditor5-core/src/plugin";
import ButtonView from "@ckeditor/ckeditor5-ui/src/button/buttonview";
as soon as I introduce these two, an error will be reported
master file
plug-in
The text was updated successfully, but these errors were encountered: