i have insert a JavaScript-Button in a TinyMce-Field for Google Analytics Opt-Out.
This is the Button-Code:
<a href=”javascript:gaOptout()” onclick=”alert(‘Google Analytics wurde deaktiviert’);”>Erfassung von Daten von Google Analytics für diese Webseite deaktivieren</a>
Javascript Button in TinyMce
Hello,
i have insert a JavaScript-Button in a TinyMce-Field for Google Analytics Opt-Out.
This is the Button-Code:
In the tinyMceConfig.config I added this:
But after saving the Button-Code looks like this:
I use Umbraco 7.5.
Can anyone help?
Greetings from Berlin
Marko
Because any addition of link or anything will be render under
tag so due to that may be editor doesnt understand link or button
solution:- You have to write full html code for button and write Js functions from there it will work fine.
is working on a reply...