Embedding Javascript in specific article - no longer works
Hi all,
A while ago I was trying to figure out how to embed Javascript into the source code of a specific article. I learned that you have to turn on "Display unsafe content" in your general settings and it should work. And it did! Until now. I just went and edited something in the source code of the article in question, and now it's no longer working and everything inside the tags is getting wrapped in CDATA tags. Did something change with the way Zendesk works? Is there some extra step I'm missing?
-
Hey there El!
I just wanted to let you know that I'm looking into this for you and I will provide you with an update here once I've gathered some more information on this!
Cheers,
Joe
-
What was the result of this?? I have a similar issue. My Show Unsafe HTML box is checked, but whenever I attempt to add javascript into an Article Source Code, it gets stripped/changed. What can I do? Thanks.
-
Hi Edward,
I believe that JavaScript is automatically stripped from the article source code upon submission. I'd be happy to work with you within a ticket to investigate your specific use-case to try to find an alternate solution.
I'll see you over in that ticket shortly.
-
Same issue here. What was the solution??
-
Hi Dan,
This could happen due to the type of JavaScript that you're attempting to use, or the nature of its implementation. As such, I'm going to reach out to you within a ticket to see what's causing your specific issue. I'll see you within that ticket shortly!
-
I am trying to apply an accordion to an article and the script that I applied is being altered and it gets applied into CDATA tags as well...I have also made sure I have the "Show Unsafe HTML" box checked, I have reached out to Zen' via chat support and I tried there recommendation to apply to a specific article and it also did not work. I am waiting to hear back after my latest follow up with them. In the mean time if anyone has found a solution, please advise. It would be greatly appreciated, thanks! ✌
-
This is still happening. Has there been any solution since?
-
Hello Saul Goodman,
I've opened up a ticket on your behalf so our specialist can look into this for you further. You should receive an email followed by a response fro one of our Advocates.
Best regards.
-
Can anybody post their Javascript code that was successful? I'm trying to build collapsible text into some FAQ articles.
Please sign in to leave a comment.
9 Comments