最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

reactjs - Troubles with plugins in CKEditor - Stack Overflow

matteradmin6PV0评论

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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

What 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.

Post a comment

comment list (0)

  1. No comments so far