x First time here? Check out the FAQ

Learn from 350 other Umbracians at the annual Umbraco Conference - CodeGarden '13.
More than twenty high quality sessions, open spaces, hackathons and social events you'll remember. Not to be missed!
Less than 45 tickets left - get yours now!

  • Avatar112posts144karma

    Render raw HTML in to tinyMCE

    Elad Lachmi started this topic March 3, 2012 @ 03:38

    Hi,

    I just created a razor macro with the following code:

    @Html.Raw(Parameter.hString)

    I created a macro from that and added a parameter named hString. I also ticked the Use in editor checkbox.

    Now when I go to tinyMCE and insert the macro I get a text box. In it I put: <a href="bla.html">Bla</a>. When I click save I get:

     

    Server Error in '/' Application.

    Length cannot be less than zero.
    Parameter name: length

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.ArgumentOutOfRangeException: Length cannot be less than zero.
    Parameter name: length


Please login or Sign up To post replies