Open casesolved-co-uk opened 1 month ago
you can pass an option to the editor plugin. the ckeditor4 option to pass is "versionCheck: false"
Hello!
After adding this option, I still see the error popup.
I can't seem to figure out what the issue is.
<script setup>
import grapesjs from "grapesjs";
import "grapesjs/dist/css/grapes.min.css";
import grapesjsPresetNewsletter from "grapesjs-preset-newsletter";
import grapesjsPluginCkeditor from "grapesjs-plugin-ckeditor";
import grapesJSMJML from "grapesjs-mjml";
const editor = grapesjs.init({
container: "#gjs",
fromElement: true,
plugins: [grapesjsPresetNewsletter, grapesjsPluginCkeditor, grapesJSMJML],
pluginsOpts: {
[grapesjsPluginCkeditor]: {
versionCheck: false,
},
},
...
Any ideas why?
you have to declare versionCheck under "options" something like this
const editor = grapesjs.init({
container: "#gjs",
fromElement: true,
plugins: [grapesjsPresetNewsletter, grapesjsPluginCkeditor, grapesJSMJML],
pluginsOpts: {
[grapesjsPluginCkeditor]: {
options: {
versionCheck: false,
//other options...
}
},
},
...
Ahh thank you for the quick help!:)
There's an example here: https://github.com/GrapesJS/ckeditor/issues/30#issuecomment-2217455678
I'm using plugin version 1.0.1 but am getting the following error when editing a text component:
It wants version 4.21.0 to go to 4.24.0
Trying to upgrade it looks like only the typescript definitions are used: "@types/ckeditor4": "^4.20.0" Which only goes up to 4.20.7
The website says this:
Looks like they're on ckeditor version 5:
https://www.npmjs.com/package/ckeditor5 https://github.com/ckeditor/ckeditor5#
Are there any plans to upgrade?
Related:
30
63