selectedHtml

Serializes the currently selected text to a XHTML string.

Returns

String The selected text as valid XHTML.

Example

<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor();
var editor = $("#editor").data("kendoEditor");
var html = editor.selectedHtml();
</script>
In this article