Copied to clipboard

Flag this post as spam?

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


  • Drew 2 posts 71 karma points
    Aug 17, 2017 @ 14:47
    Drew
    0

    How To Embed HTML in Umbraco V6.2.2

    Hi Folks,

    I'm new to Umbraco and struggling with some of the functions.

    I want to embed a Survey Monkey in a web page, but whenever I click the "HTML" button and submit my HMTL code nothing appears. I have tried using the embedded HTML code for a Youtube video and that worked fine.

    I'm really stuck here. Any ideas?

    Any help would be greatly appreciated.

    Drew

  • Neil Hodges 338 posts 987 karma points
    Aug 25, 2017 @ 15:04
    Neil Hodges
    0

    Hi

    Instead of using a RichTextEditor to embed the javascript code maybe use a TextArea?

    I think the RichTextEditor parses any Javascript added into it within the back office for security.

    Using a TextArea will allow you to add the code as plain text, then you can render it out on the page.

    Within your .cshtml page you can just call it like this:

    @Html.Raw(Model.Content.GetPropertyValue("surveyMonkeyCode"))
    
Please Sign in or register to post replies

Write your reply to:

Draft