Copied to clipboard

Flag this post as spam?

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


  • Robin Hansen 135 posts 368 karma points
    Aug 29, 2014 @ 14:27
    Robin Hansen
    0

    Macro gets stripped in RTE

    I made a simple macro containing a standard HTML5 video player...

    When I insert the macro in my RTE it renders this code - as expected

    <div class="umb-macro-holder Xstream-video mceNonEditable umb-macro-mce_4">
        <!-- <?UMBRACO_MACRO macroAlias="Xstream-video" videoId="34881" /> -->
        <ins>
            <div id="video-container">
                <video id="videoplayer" class="video-js vjs-default-skin borderbox center-block" controls="controls" autoplay="autoplay" preload="none" poster="xxxx" data-setup="{}">
                    <source src="xxxx" type="video/mp4" />
                </video>
            </div>
        </ins>
    </div>

    After I hit 'Save and Publish' my macro gets stripped to the bone and renders this - (the video are displayed perfectly on the front page however):

    <!--?UMBRACO_MACRO macroAlias="Xstream-video" videoId="34881" /-->

    I've added this to validElements in my tinyMceConfig.config:

    ,video[*],source[*]

    And this to umbracoSettings.config

    <TidyEditorContent>False</TidyEditorContent>

    How can I make the macro render in my RTE - Am I missing something...?

    I use Umbraco version 7.1.6 assembly: 1.0.5350.25714 by the way...

     

     

     

     

     

     

     

     

  • Jannik Anker 48 posts 258 karma points c-trib
    Sep 01, 2014 @ 21:53
    Jannik Anker
    0

    Are you perhaps trying to render a macro inside a macro? That's a no go :-/

  • Robin Hansen 135 posts 368 karma points
    Sep 09, 2014 @ 10:54
    Robin Hansen
    0

    The answer to this is more far out than I anticipated... - It was simply because I had a dash (-) in the macroname I rendered in my RTE... once I renamed the macro, it rendered just fine - both in the RTE but also on my page... - I did'nt even need the config updates... OMFG!! :-|

Please Sign in or register to post replies

Write your reply to:

Draft