vuejs2 - Vue.js 2 + ckeditor5 与提及插件
问题描述
所有作品,除了提及
主 vue.js 应用程序代码片段
<ckeditor :editor="editor" v-model="innerValue" :config="editorConfig"></ckeditor>
...
import CKEditor from '@ckeditor/ckeditor5-vue';
import ClassicEditor from 'ckeditor5-custom-build';
...
data: () => {
return {
innerValue: null,
editor: ClassicEditor,
editorConfig: {
toolbar: ['bold', 'italic', '|', 'NumberedList', 'BulletedList', '|', 'undo'],
mention: {
feeds: [
{
marker: '@',
feed: ['@Barney', '@Lily', '@Marshall', '@Robin', '@Ted'],
minimumCharacters: 1
}
]
}
},
}
},
主要应用依赖
...
"@ckeditor/ckeditor5-vue": "^1.0.3",
"ckeditor5-custom-build": "0.0.6",
...
ckeditor5-custom-build package.json 代码片段
"name": "ckeditor5-custom-build",
"author": "CKSource",
"description": "A custom CKEditor 5 build made by the CKEditor 5 online builder.",
"version": "0.0.6",
"main": "./build/ckeditor.js",
"license": "SEE LICENSE IN LICENSE.md",
"devDependencies": {
...
"@ckeditor/ckeditor5-mention": "^16.0.0",
...
官方指南https://ckeditor.com/docs/ckeditor5/latest/features/mentions.html
解决方案
推荐阅读
- django - Django View 和序列化程序中的嵌套注释
- r - 如何使用 R markdown 将 ggplot2 图形正确渲染为 word?
- delphi - 为什么我的 Delphi 函数与 PyDelphiWrapper 的参数总是修复错误的值?
- node.js - '无法读取另一个内部未定义的方法的属性
- javascript - 使用 jQuery 的带有元素数组的 Ajax POST HTML 表单
- sql - 如何将值插入到具有依赖于其他表的列的表中
- android - 华为。自动读取短信验证码
- postgresql - 如何更改默认值并且不允许 NULL 一次用于 PostgreSQL 中的列?
- ethereum - 将代币的价格固定为美元,但购买 ETH?
- c++ - 如何在 cpp 中更正使用 char 数组