Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sam 26 posts 137 karma points c-trib
    Nov 23, 2015 @ 01:26
    Sam
    0

    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

  • Sam 26 posts 137 karma points c-trib
    Nov 23, 2015 @ 21:03
    Sam
    100

    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

Please Sign in or register to post replies

Write your reply to:

Draft