Replies: 2 comments
|
Hi @altai861! You should begin reading our security guide, it contains the details to get you started: https://www.tiny.cloud/docs/tinymce/latest/security/ — Fredrik, Product Manager |
0 replies
|
@altai861 Hi, have you figure out how to prevent the sanitization? I tried using |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi, I know tinymce does source code sanitization and modification by design. But I have a case that I don't want to make it happen (I think there are other people that want this too). In my project, I am using tinymce to create templates that use handlebar tags. For example:
when I put
<img src="data:image/jpeg;base64,{{SOME_SRC}}" />this img tag with this source (this SOME_SRC will be populated later, this is handle bar tag) and in first tinymce's modification it becomes this<img src="data:;base64,{{SOME_SRC}}" />this. And If I refresh the page saving this template, it just becomes<img />. The src is removed, I guess this sanitization that is being made in editor's initialization is different.I don't want it to happen. I got around other cases even with this sanitization, now this is the only problem for me.
I want to solve this problem, and If it is possible, can there be any way stop this source code modification altogether
Thank you
All reactions