Get Umbraco Certified in October

5 courses in 4 different countries across 2 continents leaves no excuse.

Attend courses in the Netherlands, UK, USA and at Umbraco HQ in Denmark.

See the schedule and read more about our training here.

Copied to clipboard

Flag this post as spam?

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

  • Elad Lachmi 112 posts 144 karma points
    Mar 03, 2012 @ 15:38
    Elad Lachmi

    Render raw HTML in to tinyMCE


    I just created a razor macro with the following code:


    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 Sign in or register to post replies

Write your reply to:

Draft is the community mothership for Umbraco, the open source cms. With a friendly forum for all your questions, a comprehensive documentation and a ton of packages from the community. This site is running Umbraco version 7.3.0