In some versions tidy is being used to wipe out bad markup and inline javascript etc. - However it has been disabled in v6 and later by default. But I suspect that it still does some cleaning anyway.
But you can try to configure /config/TinyMceConfig.config file to allow all elements by just having * where all the elements are currently defined.
But why do you want to setup inline javascript on an anchor tag in the rich text editor? What is the scenario? Perhaps there is a better way around it so you don't mix content and code.
Anchor Tag href Problem
I am trying to use javascript in anchor tag href in rich text editor but its not accepting.
Code that i am using
<a href="javascript:;">Service</a>
but it converts into
<a >Service</a>
Why its happening
Could you please help me to solve?
Hi Abdullah
What exact version of Umbraco are you using?
In some versions tidy is being used to wipe out bad markup and inline javascript etc. - However it has been disabled in v6 and later by default. But I suspect that it still does some cleaning anyway.
But you can try to configure /config/TinyMceConfig.config file to allow all elements by just having * where all the elements are currently defined.
But why do you want to setup inline javascript on an anchor tag in the rich text editor? What is the scenario? Perhaps there is a better way around it so you don't mix content and code.
/Jan
Thanks Jan :)
Hi Abdullah
You're welcome - did it help any? :)
/Jan
yes, it worked for me.
Ok, happy I could help - Could you please mark the issue as solved so other who may come across the same challenge can go straight to the solution? :)
Happy coding!
/Jan
is working on a reply...