Search code examples
piranha-cms

Piranha- Custom Manager Area


I created a custom page in the manager area and would like to add the text area for editing HTML content. I can't seem to figure out how to reference the existing control. Thanks


Solution

  • To create an HTML-editor, follow these steps:

    1: Include the partial view that sets up the html-editor

    @Html.Partial("~/Areas/Manager/Views/Shared/Partial/TinyMCE.cshtml")
    

    2: Add the class editor to your textarea

    <textarea class="editor"></textarea>
    

    That should do the trick.

    Regards

    / Håkan