Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi everyone,
We have some javascript in the bottom of our page for google analytics. Everything works fine when looking at the page normally.
When viewing the page in preview mode, the javascript is lowercased, so it errors (createelement doesn't work but createElement does).
Why does Umbraco lowercase the inline javascript?
Can I turn this off?
Cheers, Sam
Update: I Found a bug in the way Umbraco was injecting the Preview Badge. I have submitted a pull request here: https://github.com/umbraco/Umbraco-CMS/pull/926
Found a matching issue as well: U4-5243
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Preview mode makes inline javascript lowercase
Hi everyone,
We have some javascript in the bottom of our page for google analytics. Everything works fine when looking at the page normally.
When viewing the page in preview mode, the javascript is lowercased, so it errors (createelement doesn't work but createElement does).
Why does Umbraco lowercase the inline javascript?
Can I turn this off?
Cheers, Sam
Update: I Found a bug in the way Umbraco was injecting the Preview Badge. I have submitted a pull request here: https://github.com/umbraco/Umbraco-CMS/pull/926
Found a matching issue as well: U4-5243
is working on a reply...