The Editor allows users to create rich text content by means of a WYSIWYG interfance. The generated widget value is an XHTML markup.
<textarea id="editor" rows="10" cols="30"></textarea>
$(document).ready(function(){
$("#editor").kendoEditor();
});
$(document).ready(function(){
$("#editor").kendoEditor({
tools: [
"bold",
"italic",
"underline",
"foreColor"
]
});
});
tools
array. $("#editor").kendoEditor({
tools: [
{
name: "toolName",
tooltip: "Custom editor tool",
exec: function(e) {
var editor = $(this).data("kendoEditor");
// execute command
}
}
]
});
toolName
is the name specified in the custom tool configuration)