state

Get the state of a given tool. Introduced in the 2013.2.923 internal build.

Parameters

toolName String

The name of the tool that will be tested if formatted.

Returns

Boolean The state of the tool.

Example

<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor();
var editor = $("#editor").data("kendoEditor");
editor.value("<em>foo</em>");
var range = editor.createRange();
range.selectNodeContents(editor.body.firstChild);
editor.selectRange(range);
console.log(editor.state("italic")); // logs true
console.log(editor.state("bold")); // logs false
</script>
In this article
Not finding the help you need? Improve this article