You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Example ckeditor.js does not work for me. I tried copying the example code in the first ckeditor.js in the documentation and I got console error "Uncaught SyntaxError: Unexpected token ':'" and strapi failed to compile. I tried changing the name of the file to ckeditor.txt and strapi ran, but my new config wasn't visible. I required the code in #127 (comment) AND a file called ckeditor.txt for my new config to work.
I'm running strapi 4.25.9 using node 18.
Expected behavior
The config that's documented by the example becomes available as "My Custom Preset"
What actually happened: I got "Uncaught SyntaxError: Unexpected token ':'" and strapi failed to run.
Hello, I had the same problem recently. To fix it, I changed the format of the CKEConfig() function.
I pretty much put presets into an object (it being the "configuration" object) and returned it.
Describe the bug
Example ckeditor.js does not work for me. I tried copying the example code in the first ckeditor.js in the documentation and I got console error "Uncaught SyntaxError: Unexpected token ':'" and strapi failed to compile. I tried changing the name of the file to ckeditor.txt and strapi ran, but my new config wasn't visible. I required the code in #127 (comment) AND a file called ckeditor.txt for my new config to work.
I'm running strapi 4.25.9 using node 18.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The config that's documented by the example becomes available as "My Custom Preset"
What actually happened: I got "Uncaught SyntaxError: Unexpected token ':'" and strapi failed to run.
please complete the following information:
plugins.js (if exist)
module.exports = () => ({});
package.json
{
"name": "gta",
"private": true,
"version": "0.1.0",
"description": "A Strapi application",
"scripts": {
"develop": "strapi develop",
"start": "strapi start",
"build": "strapi build",
"strapi": "strapi",
"deploy": "strapi deploy"
},
"devDependencies": {},
"dependencies": {
"@_sh/strapi-plugin-ckeditor": "^2.1.3",
"@strapi/plugin-cloud": "4.25.9",
"@strapi/plugin-graphql": "^4.25.9",
"@strapi/plugin-i18n": "4.25.9",
"@strapi/plugin-users-permissions": "4.25.9",
"@strapi/strapi": "4.25.9",
"better-sqlite3": "8.6.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-router-dom": "5.3.4",
"strapi-plugin-navigation": "^2.5.3",
"styled-components": "5.3.3"
},
"author": {
"name": "A Strapi developer"
},
"strapi": {
"uuid": "6e813ed3-8cb0-4483-96c2-b02cffeb0b21"
},
"engines": {
"node": ">=18.0.0 <=20.x.x",
"npm": ">=6.0.0"
},
"license": "MIT"
}
node version
18.0.0
The text was updated successfully, but these errors were encountered: