1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / prevent code rewriting in wysiwyg

prevent code rewriting in wysiwyg

2 posts, 0 answered
  1. Ed
    Ed avatar
    0 posts
    Registered:
    02 Mar 2016
    08 Mar
    Link to this post

    i have some google custom search code that i would like to include on my page. is it possible to wrap code or something in the html wysiwyg so that the editor doesn't strip invalid tags? something like:

    [retainFormat]

    my custom code here

    [/retainFormat]

  2. Victor Leontyev
    Victor Leontyev avatar
    65 posts
    Registered:
    01 Jul 2014
    09 Mar in reply to Ed
    Link to this post

    You can do this in two ways:

    1) Latest SF has "Embed Code" MVC widget (in Script ans Styles group). And you can place any html inside

    2) You can disable stripping tags for content block. You can read my response at SO: http://stackoverflow.com/questions/40372110/sitefinity-9-1-html-re-structure-issue-in-content-block/40377991#40377991

2 posts, 0 answered