Search results

Formation

The RichTextEditor component used to create and edit the content and return valid HTML markup or markdown (MD) of the content. It supports the following two editing formation.

  • HTML Editor
  • Markdown Editor

HTML Editor

RichTextEditor is a WYSIWYG editing control for formatting the word content as HTML. The HTML editing mode is the default mode in RichTextEditor to format the content through the available toolbar items to return the valid HTML markup. Set the editorMode property as HTML.

razor
@Html.EJS().RichTextEditor("types").Value((string)ViewBag.value).Height("720px").Render()

Markdown Editor

Set the editorMode property as Markdown, to create or edit the content and apply formatting to view markdown formatted content. The third-party library such as Marked or any other library is used to convert markdown into HTML content.

  • The Supported Tags are h6,h5,h4,h3,h2,h1,blockquote,pre,p,OL,UL.
  • The Supported Selection Tags are Bold, Italic, StrikeThrough, InlineCode, SubScript, SuperScript, UpperCase, LowerCase.

The third-party library such as Marked or any other library is used to convert markdown into HTML content.

razor
@using Syncfusion.EJ2
@using Syncfusion.EJ2.RichTextEditor

@Html.EJS().RichTextEditor("types").Value((string)ViewBag.value).EditorMode(EditorMode.Markdown).Height("720px").Render()