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
Tinymceprops can't handle #dotParse when editing a page #19214
Comments
@Xander-Steinmann workaround for now. In the
|
PR: #19217 |
Working as it should. The edit content dialog shows up correctly in both options (from Content Search and from a page). |
Fixed, tested on release-5.3.8 // Postgres // FF |
the issue could be fixed by two ways:
Probably an improvement could be to show a better error message when the content editor is being rendered |
You can change the tinyMCE properties by using tinymceprops. This works fine with static JSON but you can also use velocity in this. This also works fine when you edit content from the content search portlet, but when you are on a page and you want to edit a piece of content the #dotParse is rendered as a DIV which breaks the javascript:
To Reproduce
Steps to reproduce the behavior:
{ toolbar1: "bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | fullscreen", convert_urls: false, plugins: "fullscreen" }
or
Uncaught SyntaxError: expected expression, got '<'
Expected behavior
The popup should open normally
Additional context
I think the edit view of the page renders the #dotParse with an icon or something instead of as JSON. This breaks the javascript since it expects a JSON object but actually gets raw HTML code, which does not parse.
Workaround
Do not use #dotParse in a tinymceprops field (which is a pity when multiple WYSIWYG editors need the same config)
The text was updated successfully, but these errors were encountered: