nshenderov / strapi-plugin-ckeditor

Integrates CKEditor 5 into your Strapi project as a fully customizable custom field. (Unofficial integration)
https://www.npmjs.com/package/@_sh/strapi-plugin-ckeditor
MIT License
95 stars 58 forks source link

wysiwyg regression when upgrading ckeditor from 1.1.2 to 2.1.1 #143

Closed DavidPoulain closed 5 months ago

DavidPoulain commented 5 months ago

Hi !

We recently upgraded our Strapi and plugins, including @_sh/strapi-plugin-ckeditor from 1.1.2 to 2.1.1.

Our node version is good and we have "@strapi/strapi": "4.15.5" in package.json.

We discover that our wysiwyg was no longer with all the ckeditor options.

I checked the documentation and added the ckeditor.txt in the config folder (same content as the documentation).

We do not use the app.js file in scr/admin. We have a Strapi folder (same level as config folder), with inside a client folder and an app.js file which is automatically generated by Strapi :

/**
 * This file was automatically generated by Strapi.
 * Any modifications made will be discarded.
 */
import ckeditor5 from "@_sh/strapi-plugin-ckeditor/strapi-admin";
import colorPicker from "@strapi/plugin-color-picker/strapi-admin";
import documentation from "@strapi/plugin-documentation/strapi-admin";
import i18N from "@strapi/plugin-i18n/strapi-admin";
import sentry from "@strapi/plugin-sentry/strapi-admin";
import seo from "@strapi/plugin-seo/strapi-admin";
import usersPermissions from "@strapi/plugin-users-permissions/strapi-admin";
import configSync from "strapi-plugin-config-sync/strapi-admin";
import duplicateButton from "strapi-plugin-duplicate-button/strapi-admin";
import multiSelect from "strapi-plugin-multi-select/strapi-admin";
import navigation from "strapi-plugin-navigation/strapi-admin";
import publisher from "strapi-plugin-publisher/strapi-admin";
import simpleMessage from "../../src/plugins/simpleMessage/strapi-admin";
import polymorphicRelation from "../../src/plugins/polymorphic-relation/strapi-admin";
import { renderAdmin } from "@strapi/strapi/admin";

renderAdmin(document.getElementById("strapi"), {
  plugins: {
    ckeditor5: ckeditor5,
    "color-picker": colorPicker,
    documentation: documentation,
    i18n: i18N,
    sentry: sentry,
    seo: seo,
    "users-permissions": usersPermissions,
    "config-sync": configSync,
    "duplicate-button": duplicateButton,
    "multi-select": multiSelect,
    navigation: navigation,
    publisher: publisher,
    "simple-message": simpleMessage,
    "polymorphic-relation": polymorphicRelation,
  },
});

The plugin is indeed in the list of plugins in our admin panel but the wysiwyg are still the basic ones. When I want to add a new field and go to custom, ckeditor5 is not there.

So I tried to add in plugins.js :

 ckeditor5: {
    enabled: true,
  },

It didn't work.

Every time I tried something I deleted node modules folder and yarn lock file. Then yarn install and finally a docker compose up --build.

Do you have a suggestion ?