api - 未捕获的 CKEditorError:Vuejs3 中的 ckeditor-duplicated-modules
问题描述
我正在尝试安装ckeditor。在控制台中收到此错误这是我的 package.json 文件。在 ckeditor5 模块中,当我导入字体插件时出现同样的错误。现在我正在尝试手动安装所有插件。
<template>
<div id="app">
<ckeditor :editor="editor" v-model="editorData" :config="editorConfig"></ckeditor>
</div>
<script>
// ⚠️ NOTE: We don't use @ckeditor/ckeditor5-build-classic any more!
// Since we're building CKEditor from source, we use the source version of ClassicEditor.
// import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
import EssentialsPlugin from '@ckeditor/ckeditor5-essentials/src/essentials';
import BoldPlugin from '@ckeditor/ckeditor5-basic-styles/src/bold';
import ItalicPlugin from '@ckeditor/ckeditor5-basic-styles/src/italic';
import LinkPlugin from '@ckeditor/ckeditor5-link/src/link';
import ParagraphPlugin from '@ckeditor/ckeditor5-paragraph/src/paragraph';
export default {
name: 'app',
data() {
return {
editor: ClassicEditor,
editorData: '<p>Content of the editor.</p>',
editorConfig: {
plugins: [
EssentialsPlugin,
BoldPlugin,
ItalicPlugin,
LinkPlugin,
ParagraphPlugin
],
toolbar: {
items: [
'bold',
'italic',
'link',
'undo',
'redo'
]
}
}
};
}
};
解决方案
推荐阅读
- javascript - Netsuite Suitescript 2 - 搜索中的客户存款剩余金额
- excel - 参考从中复制数据的选项卡,将不同选项卡中的数据整理到单个选项卡
- batch-file - 命令的语法不正确(批处理文件)
- drop-down-menu - 带有标题的下拉菜单 - libgdx
- php - php如何使用dom从php中的html中提取递归列表?
- node.js - Nodejs/Mongoose : mongoose 断开连接时查询
- html - 引导工具无法从 768 到 1320 屏幕宽度工作
- react-native - websocket与android应用程序的连接
- c++ - 检测一个键是否是加载/安装的注册表配置单元的根
- html - 防止内容在带有隐式行的网格中自动居中