Copied to clipboard

Flag this post as spam?

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


  • AB 29 posts 80 karma points
    Jun 05, 2014 @ 16:25
    AB
    0

    Rich Text Editor and macros

    Hi I am using umbraco version 7.

    I have a rich text editor property on my homepage.  The TinyMCE editor allows to insert macros.

    I have created a MacroPartial using razor.  When I insert the macro in the editor, it renders perfectly.

    However, when I try and view this on the page it doesnt render.  When checking the output, the macro is being written out '\n<?UMBRACO_MACRO macroAlias=\"Quote\" quoteSelection=\"1082\" />'

    I know there have been problems with macros and TinyMCE in past versions of umbraco.  Is there a work around for this at the moment?

    Thanks

    Adam

     

  • AB 29 posts 80 karma points
    Jun 05, 2014 @ 16:38
    AB
    0

    Apologies, it came to me!

    For future reference, when outputting in razor use:

    @Html.Raw(library.RenderMacroContent(Model.Content, Model.Id))
    
  • Anders Schmidt 76 posts 207 karma points
    Jun 19, 2014 @ 09:03
    Anders Schmidt
    0

    Hi

    I am having same issue. I am pulling my rich text editor like this:

     

    @Html.Raw(node.getProperty("textModule").Value)

     

    Can anyone help me out?

     

    Thanks

     

     

     

     

     

     

Please Sign in or register to post replies

Write your reply to:

Draft