Copied to clipboard

Flag this post as spam?

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


  • Adriano Fabri 459 posts 1602 karma points
    Apr 27, 2017 @ 16:18
    Adriano Fabri
    0

    Problem after upgrade Umbraco from 4.7 to 7.5. Inserted macros in RTE, no longer work

    Hi to all, I have a visualization problem in backoffice after the upgrade from v4.7 to 7.5...I go to explain.

    There are nodes that in RTE render a macro that show a youtube video.

    I found different behaviors between old v4.7 rendered code and the code generated in v7.5

    This is the old v4.7 "Insert Macro" rendered code:

    <div class="umb-macro-holder mceNonEditable loading">
        <!-- <?UMBRACO_MACRO videoID="ooOxX0xO0OO" macroAlias="youTubeCustomPlayer" /> --> 
        <ins>Macro alias: <strong>youTubeCustomPlayer</strong></ins>
    </div>
    

    This generate a JS error and I not see the video in (see attach)

    Macro Tag not rendered (Javascript Error)

    Now...if I try to insert the same macro (now I am in v7.5), I notice that the rendered code is very different:

    <div class="umb-macro-holder youTubeCustomPlayer mceNonEditable umb-macro-mce_0">
        <!-- <?UMBRACO_MACRO macroAlias="youTubeCustomPlayer" videID="ooOxX0xO0OO" /> -->
        <ins>
            <div id="BO_YTCPytplayerooOxX0xO0OO">
    
    
    
    
    <iframe src="https://www.youtube.com/embed/ooOxX0xO0OO?rel=0&amp;enablejsapi=1&amp;idgetid=1" frameborder="0" width="426" height="240"></iframe>
    
    
    
    
            </div>
            <div id="YTCPytplayerooOxX0xO0OO" class="center-block"></div>
    
    
    
    
    <script>// <![CDATA[
                if ((typeof ytPlayerInfoList === 'undefined') || (ytPlayerInfoList === null)) {
                    $("#YTCPytplayerooOxX0xO0OO").remove();
                }
                else {
                    ytPlayerInfoList.push({id:'YTCPytplayerooOxX0xO0OO',width:'853',height:'480',videoId:'ooOxX0xO0OO',rel:'0'});
                    $("#BO_YTCPytplayerooOxX0xO0OO").remove();
                }
            // ]]></script>
    
    
    
    
        </ins>
    </div>
    

    The generated code correctly displays the video (see Attach)

    youTube Video Correctly Rendered in RTE

    There is a quick way to auto update all nodes with old code, to the newer version?

    The number of nodes to manually update would be too high.

    I tried to find the solution in the forum and in internet but I haven't found it.

    Thank you for the support Adriano

Please Sign in or register to post replies

Write your reply to:

Draft