Search code examples
sitecorerenderingcomponentsrich-text-editorsublayout

How do i create a rich text editor component in sitecore


In Sitecore, what are the steps involved in creating a rich text editor rendering/component and having it appear on a page in the experience editor (for an ASP.NET MVC application) ?

Thank you!


Solution

  • With an item that uses a template that has a Rich Text Field called Body, this is your rendering markup. The field is completely editable when rendered in edit mode.

    @using Sitecore.Mvc
    @using Sitecore.Mvc.Presentation
    @model RenderingModel
    <div class="row">
        @Html.Sitecore().Field("Body")
    </div>