Custom plugin disable with version 4.15.5

System Information
  • Strapi Version : 4.15.5:
  • Operating System:
  • Database: MySql:
  • Node Version : 18:
  • NPM Version:
  • Yarn Version : 1.22.19:

Hello everyone,

This is my first time reaching out to you because I’ve been using a custom plugin for a long time to integrate TinyMCE and N1ED to override the text editor in Strapi.

Since version 4.15.5, I haven’t encountered any errors, but my plugin no longer works, whereas it was working fine in version 4.15.0. Do you know why?

In my plugins.js :

wysiwyg: {
    enabled: true,
    resolve: './src/plugins/wysiwyg',
  },

In my src/plugins/wysiwyg/admin/src/components/wysiwyg/index.js

/* eslint-disable */  
import React from 'react';  
import { Editor as TinyMCE } from "@tinymce/tinymce-react"  
import styled from 'styled-components';  
import DOMPurify from 'dompurify';  
  
  
const Wrapper = styled.div`  
 .ck-editor__main { min-height: 200px; > div { min-height: 200px; } }`;  
const Editor = ({ onChange, name, value }) => {  
  return (  
    <Wrapper>  
 <TinyMCE  apiKey='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'  
  value={value}  
        tagName={name}  
        onEditorChange={(editorContent) => {  
          onChange({ target: { name, value: editorContent } });  
  }}  
        outputFormat="text"  
  init={{  
          urlFiles: 'https://blabla.test',  
  urlFileManager: 'https://blabla.test/flmngr',  
  dirUploads: '/',  
  verify_html: false,  
  content_css: "/css/fonts.css,/css/icons.css,/css/main.css",  
  toolbar: 'undo redo | bold italic underline strikethrough | fontfamily fontsizeinput forecolor | alignleft aligncenter alignright alignjustify | outdent indent | numlist bullist | forecolor backcolor removeformat | link',  
  font_family_formats: "Open Sans=Open sans; Museo Slab 500=Museo Slab 500; Blog Script=Blog Script; Andale Mono=andale mono,times; Arial=arial,helvetica,sans-serif; Arial Black=arial black,avant garde; Book Antiqua=book antiqua,palatino; Comic Sans MS=comic sans ms,sans-serif; Courier New=courier new,courier; Georgia=georgia,palatino; Helvetica=helvetica; Impact=impact,chicago; Oswald=oswald; Symbol=symbol; Tahoma=tahoma,arial,helvetica,sans-serif; Terminal=terminal,monaco; Times New Roman=times new roman,times; Trebuchet MS=trebuchet ms,geneva; Verdana=verdana,geneva; Webdings=webdings; Wingdings=wingdings,zapf dingbats",  
  font_size_formats: '8px 10px 12px 14px 16px 18px 24px 36px 48px',  
  height: 500,  
  plugins: 'lists advlist link',  
  external_plugins: {  
            'N1EDEco': `https://cloud.n1ed.com/cdn/AAAAAAA/latest/tinymce/plugins/N1EDEco/plugin.js`,  
  'n1ed': `https://cloud.n1ed.com/cdn/AAAAAA/n1tinymce.js`  
  },  
  color_map: [  
            '000000', 'Black',  
  'FFFFFF', 'White',  
  '007e92', 'Primary',  
  '054663', 'Primary 2',  
  '54bbab', 'Secondary',  
  '4e17a5', 'Purple',  
  'ebebeb', 'Gray 1',  
  'f8f8f8', 'Gray 2',  
  '707070', 'Gray 3',  
  '6f6f6f', 'Gray 5',  
  '575756', 'Gray 6',  
  'e0e0e0', 'Gray 7',  
  '5bc5f2', 'Blue light',  
  '006fae', 'Blue dark',  
  '0076af', 'Blue dark 2',  
  'd9000d', 'Red',  
  ],  
  setup: () => {  
            tinymce.PluginManager.add(  
              "n1ed",  
 function() {},  
  ["N1EDEco"]  
            ); // I'm importing this plugin from a js file  
  }  
        }}  
      />  
 </Wrapper>  );  
};  
export default Editor;