Copied to clipboard

Flag this post as spam?

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


  • Huw Reddick 1929 posts 6717 karma points MVP 2x c-trib
    Nov 17, 2022 @ 11:29
    Huw Reddick
    0

    Odd sync issue with Macro in RTE

    Hi,

    Using latest Converge version.

    I'm getting a weird issue when trying to sync a page that has an RTE with macro's, It always says there is a difference. I have narrowed it down to the folowing.

    I have compared the raw content of both the RTE's and the raw content in backoffice is the same, however when converge does a compare, the RTE content is not the same, for some reason in the site I am merging to, an extra paramater is added to the macro container, I have no idea wher this comes from, and means lots of pages show is needing to be merged even though they are the same.

    In both sites the RTE content has this div

    <div class=\"umb-macro-holder LinkButton umb-macro-mce_1 mceNonEditable\">
    

    However in the Converge compare it thinks my local copy is this

    <div class=\"umb-macro-holder LinkButton umb-macro-mce_1 mceNonEditable loading\">
    

    Where is this loading attribute coming from?

  • Stuart Mullinger 79 posts 422 karma points
    Nov 19, 2022 @ 17:00
    Stuart Mullinger
    100

    Hi Huw, just only had a quick look, but I think it must be coming from Umbraco (when the content is saved). I checked v8.17 and it's there. Then checked v7.15 and it's not there.

    I'll need to add a new DataTypeConverter, once I figure out what version it was introduced in. This may take me a while (hoping to do some work on Converge over Christmas), but you can do the same to fix the issue now.

    I'll post the code here when done, but you can check here for the approach.

    https://www.stuartmullinger.com/projects/web/converge/data-type-converter/

    Check for propertyEditorAlias == "Umbraco.TinyMCE" and implement ConvertProperty() to look for these divs, and then add the loading attribute.

    Add the new converter using:

    ConvergeConverters.AddDataTypeConverter(new MyDataTypeConverter());
    
  • Huw Reddick 1929 posts 6717 karma points MVP 2x c-trib
    Nov 19, 2022 @ 17:33
    Huw Reddick
    0

    Thanks Stuart, I will take look next week when I'm back home.

  • Huw Reddick 1929 posts 6717 karma points MVP 2x c-trib
    Nov 20, 2022 @ 14:27
    Huw Reddick
    0

    Hi Stuart,

    Unfortunately in my case this didn't help, I am assumimg it is because the RTE is in a grid and it therefore does not get picked up by my Umbraco.TinyMCE convertor, I tried changing it to propertyEditorAlias == "Umbraco.Grid" but that didn't pick it up either.

  • Huw Reddick 1929 posts 6717 karma points MVP 2x c-trib
    Nov 20, 2022 @ 14:33
    Huw Reddick
    0

    mmm, I did another rebuild and it now picks up the Grid, so will try again :)

  • Stuart Mullinger 79 posts 422 karma points
    Nov 21, 2022 @ 08:41
    Stuart Mullinger
    0

    Let me know how you get on.

  • Huw Reddick 1929 posts 6717 karma points MVP 2x c-trib
    Nov 21, 2022 @ 17:21
    Huw Reddick
    0

    All good so far

Please Sign in or register to post replies

Write your reply to:

Draft