-
Notifications
You must be signed in to change notification settings - Fork 23
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
TinyMCE breaks Modx chuncks and snippets #114
Comments
This issue has been mentioned on MODX Community. There might be relevant details there: https://community.modx.com/t/paid-custom-fancybox-snippet-with-phpthumbon/4165/10 |
I can't reproduce this here. Please paste the snippet call into the TinyMCE field and open the source code window of TinyMCE with the |
The issue is valid for Snippet calls in HTML attributes:
is converted to
Outside of an attribute only the ampersand is replaced (which will be parsed right in MODX):
vs.
I don’t think, that you can change the behaviour of TinyMCE to bypass that issue. You have to use MODX chunks for this use case. |
I have tested the behaviour in TinyMCE RTE 1.4.0. The backticks are converted there too. Could you tell me which issues occur during parsing that content? Is it maybe a degression in MODX 2.x? |
Bug report
Summary
Hi there, there is a very annoying issue with the TinyMCE, every “backtics” and “&” are converted into html.
For example, this code:
[[!snippet? &input=`url/image.jpg` &options=`
When copied into TinyMCE looks like this
[[!snippet? &input=`url/image.jpg` &options=`
I’ve tried a few configurations, but nothing really works. Does anyone have any idea?
Step to reproduce
Just copy and paste any chunck snippet that has “backtics” or “&”.
Observed behavior
It's converted into html
Expected behavior
Chuncks and Snippet should not be converted into HTML
Environment
Modx 2.8, php 7.4
Solution I've tried with no luck
https://www.tiny.cloud/docs-4x/configure/content-filtering/#encodingtypes
https://www.tiny.cloud/docs-4x/configure/content-filtering/#encoding
https://www.tiny.cloud/docs-4x/configure/content-filtering/#custom_elements
The text was updated successfully, but these errors were encountered: