Hi everybody.
I'm transferring an old 3.2 website to the most recent version of CMSimple, and run into a problem.
When I select some text, add a link to it, and define the target as javascript:some_code, the javascript code is removed on save. But I need it to obfuscate an email address.
How can I enter javascript as a link URL?
thank you.
Javascript in links
-
- Posts: 5
- Joined: Wed 11. Jan 2017, 14:14
Re: Javascript in links
OK, found it by myself.
It's not a CMSimple issue, but a config option of the tinyMCE editor. To fix, go to .../plugins/tinymce/inits and add the line
directly behind the line
in the files
It's not a CMSimple issue, but a config option of the tinyMCE editor. To fix, go to .../plugins/tinymce/inits and add the line
Code: Select all
allow_script_urls: true,
Code: Select all
selector: "cmsimple-editor",
- init_full.js
init_medium.js
init_minimal.js
init_narrow.js
init_sidebar.js
Code: Select all
var tinyConfig = {
// convert_urls: false,
selector: "cmsimple-editor",
allow_script_urls: true,
skin: "cmsimple",
[...]