admin管理员组文章数量:1024582
I have troubles with plugins in CKEditor. I want to use table plugins such as Table, TableCellProperties, TableProperties, TableToolbar
, but I have some errors when I adding them in config. So here is my config:
import { EditorConfig } from "@ckeditor/ckeditor5-core";
import {
Table,
TableCellProperties,
TableProperties,
TableToolbar,
} from "@ckeditor/ckeditor5-table";
export const editorConfig: EditorConfig = {
language: "en",
plugins: [
Table,
TableCellProperties,
TableProperties,
TableToolbar
],
table: {
contentToolbar: [
"tableColumn",
"tableRow",
"mergeTableCells",
"tableProperties",
"tableCellProperties",
],
},
removePlugins: [...],
toolbar: {
removeItems: [...]
},
};
Here is versions
"@ckeditor/ckeditor5-core": "^43.3.1",
"@ckeditor/ckeditor5-react": "^6.2.0",
"@ckeditor/ckeditor5-table": "^43.3.1",
"@ckeditor/ckeditor5-utils": "^43.3.1",
And here is error:
How can I solve this problem? This error occurs on each of plugins.
I have troubles with plugins in CKEditor. I want to use table plugins such as Table, TableCellProperties, TableProperties, TableToolbar
, but I have some errors when I adding them in config. So here is my config:
import { EditorConfig } from "@ckeditor/ckeditor5-core";
import {
Table,
TableCellProperties,
TableProperties,
TableToolbar,
} from "@ckeditor/ckeditor5-table";
export const editorConfig: EditorConfig = {
language: "en",
plugins: [
Table,
TableCellProperties,
TableProperties,
TableToolbar
],
table: {
contentToolbar: [
"tableColumn",
"tableRow",
"mergeTableCells",
"tableProperties",
"tableCellProperties",
],
},
removePlugins: [...],
toolbar: {
removeItems: [...]
},
};
Here is versions
"@ckeditor/ckeditor5-core": "^43.3.1",
"@ckeditor/ckeditor5-react": "^6.2.0",
"@ckeditor/ckeditor5-table": "^43.3.1",
"@ckeditor/ckeditor5-utils": "^43.3.1",
And here is error:
How can I solve this problem? This error occurs on each of plugins.
Share Improve this question asked Nov 18, 2024 at 11:24 xantinxantin 1512 silver badges12 bronze badges1 Answer
Reset to default 0What builder are you using?
If you're using Vite, please check this guide: Integrating CKEditor 5 from source using Vite
And here is for Webpack Integrating CKEditor 5 from source using Webpack
These configurations handle loading the SVG icons, styles from the packages, and the theme package.
I have troubles with plugins in CKEditor. I want to use table plugins such as Table, TableCellProperties, TableProperties, TableToolbar
, but I have some errors when I adding them in config. So here is my config:
import { EditorConfig } from "@ckeditor/ckeditor5-core";
import {
Table,
TableCellProperties,
TableProperties,
TableToolbar,
} from "@ckeditor/ckeditor5-table";
export const editorConfig: EditorConfig = {
language: "en",
plugins: [
Table,
TableCellProperties,
TableProperties,
TableToolbar
],
table: {
contentToolbar: [
"tableColumn",
"tableRow",
"mergeTableCells",
"tableProperties",
"tableCellProperties",
],
},
removePlugins: [...],
toolbar: {
removeItems: [...]
},
};
Here is versions
"@ckeditor/ckeditor5-core": "^43.3.1",
"@ckeditor/ckeditor5-react": "^6.2.0",
"@ckeditor/ckeditor5-table": "^43.3.1",
"@ckeditor/ckeditor5-utils": "^43.3.1",
And here is error:
How can I solve this problem? This error occurs on each of plugins.
I have troubles with plugins in CKEditor. I want to use table plugins such as Table, TableCellProperties, TableProperties, TableToolbar
, but I have some errors when I adding them in config. So here is my config:
import { EditorConfig } from "@ckeditor/ckeditor5-core";
import {
Table,
TableCellProperties,
TableProperties,
TableToolbar,
} from "@ckeditor/ckeditor5-table";
export const editorConfig: EditorConfig = {
language: "en",
plugins: [
Table,
TableCellProperties,
TableProperties,
TableToolbar
],
table: {
contentToolbar: [
"tableColumn",
"tableRow",
"mergeTableCells",
"tableProperties",
"tableCellProperties",
],
},
removePlugins: [...],
toolbar: {
removeItems: [...]
},
};
Here is versions
"@ckeditor/ckeditor5-core": "^43.3.1",
"@ckeditor/ckeditor5-react": "^6.2.0",
"@ckeditor/ckeditor5-table": "^43.3.1",
"@ckeditor/ckeditor5-utils": "^43.3.1",
And here is error:
How can I solve this problem? This error occurs on each of plugins.
Share Improve this question asked Nov 18, 2024 at 11:24 xantinxantin 1512 silver badges12 bronze badges1 Answer
Reset to default 0What builder are you using?
If you're using Vite, please check this guide: Integrating CKEditor 5 from source using Vite
And here is for Webpack Integrating CKEditor 5 from source using Webpack
These configurations handle loading the SVG icons, styles from the packages, and the theme package.
本文标签: reactjsTroubles with plugins in CKEditorStack Overflow
版权声明:本文标题:reactjs - Troubles with plugins in CKEditor - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745621818a2159619.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论