eSPiYa
eSPiYa

Reputation: 950

Switching between text and HTML editor on Kendo Editor(WYSIWYG)

How to switch between the rich-text editor mode and text/HTML editor mode on Kendo Editor?

Upvotes: 1

Views: 1736

Answers (1)

dimodi
dimodi

Reputation: 4139

The Editor has a built-in viewHtml tool, which can be used for raw HTML editing.

http://docs.telerik.com/kendo-ui/api/javascript/ui/editor#configuration-tools

<textarea id="editor">
  &lt;p&gt;I am a paragraph.&lt;/p&gt;
</textarea>

<script>
$("#editor").kendoEditor({
  tools: [
    "viewHtml"
  ]
});
</script>

Upvotes: 2

Related Questions