WP Edit – Preventing WordPress from stripping out onclick Javascript
-
Greetings!
I’ve been trying to implement some Javascript and related PHP scripts on our site from a document management suite we use (DocMoto). What I’m trying to do is on our WordPress site, rather than using a plugin to store our documents there and have clients/general public access them there, to instead access them in a guest mode from our DocMoto server. This also helps make sure we have the most current version as it’s only accessing our controlled docs and we don’t have to make sure what is on the website is up to date and matches DocMoto.
Anywhooo…the Javascript function I’m trying to implement uses onclick and that gets stripped out when I flip from the Text back to the Visual editor. That part I figured out was part of the TinyMCE issue…thus that brought me to your plugin.
How do I setup your plugin so that it will allow me to use the Javascript onclick in this example…
onclick=”getDMFile(‘https://mydocmotoserver.com:3983/Contents/Folder1/company_brochure.pdf’)
The example can be found here:
https://www.docmoto.com/support/advanced-topics/anonymous-file-access-to-a-docmoto-repository/Thanks!
- The topic ‘WP Edit – Preventing WordPress from stripping out onclick Javascript’ is closed to new replies.