haylau Posted August 27, 2020 Share Posted August 27, 2020 Hi Trying to add some code to CMS page, but it is being stripped. I am trying to embed a clickable link to the Tawk.to chat system so I can disable the pop up widget (https://help.tawk.to/article/using-a-text-link-or-button) The code is: <a href="javascript:void(Tawk_API.toggle())"> Click to Chat </a> I have switched to source code view and paste that and save, but it is changed to <a> Click to Chat </a> I read somewhere that it could be to do with tinymce and made some mods (https://mypresta.eu/en/art/prestashop-16/extended-rich-text-editor.html) But that does not help either Any ideas? Link to comment Share on other sites More sharing options...
Traumflug Posted August 27, 2020 Share Posted August 27, 2020 HTMLPurifier turned off in Preferences -> General? Link to comment Share on other sites More sharing options...
haylau Posted August 27, 2020 Author Share Posted August 27, 2020 34 minutes ago, Traumflug said: HTMLPurifier turned off in Preferences -> General? It is off, is that how it should be? Link to comment Share on other sites More sharing options...
haylau Posted August 28, 2020 Author Share Posted August 28, 2020 Not a perfect solution, but pasting the code directly in to the database works Link to comment Share on other sites More sharing options...
Traumflug Posted August 28, 2020 Share Posted August 28, 2020 Yes, HTMLPurifier should be off. Apparently TinyMCE still doesn't like it. 😕 Link to comment Share on other sites More sharing options...
holybladder Posted October 10, 2021 Share Posted October 10, 2021 Hi, I have the same problem, with HTMLPurifier turned off the page still just says "The content field is invalid" when I try to paste in Javascript (trying to embed a Paypal subscription button in a CMS page). Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now