-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"The options are written in an incorrect format." when saving Trumbowyg settings #15703
Comments
This is a regression since 1.8.2. |
@MikeAlhayek this looks like a JSON issue too. |
That's a good example of update regression. 😄 |
I am guessing that Json contains a trailing comma or contains comments. |
The problem is that since 1ee808f the Trumbowyg editor's settings (and since then, a lot of other code using {
autogrow: true,
btns: [
["viewHTML"],
["undo", "redo"],
["formatting"],
["strong", "em", "del"],
["foreColor", "backColor"],
["superscript", "subscript"],
["link"],
["insertShortcode"],
["image"],
["align"],
["unorderedList", "orderedList"],
["horizontalRule"],
["removeformat"],
["fullscreen"]
],
btnsDef: {
align: {
dropdown: ["justifyLeft", "justifyCenter", "justifyRight", "justifyFull"]
ico: "justifyLeft"
},
image: {
dropdown: ["insertImage", "base64", "noembed"],
ico: "insertImage"
}
}
} We need to keep this for Trumbowyg. So, for these, maybe we need JS, not JSON validation instead? Either Jint |
Describe the bug
When saving the Trumbowyg settings, at least for Html Field, you get the "The options are written in an incorrect format." error with the default options.
To Reproduce
main
with the Blog recipe.Expected behavior
The default options just work.
Screenshots
2024-04-09_17h59_03.mp4
The text was updated successfully, but these errors were encountered: