Indicates whether the Editor should submit encoded HTML tags.
Example
$("#editor").kendoEditor({
encoded: false
});
Allows custom stylesheets to be included within the editing area.
Example
$("#editor").kendoEditor({
stylesheets: [
"common-styles.css",
"green-theme.css",
]
});
A collection of tools that should render a button, combobox, etc, to interact with the Editor. Custom tools are defined
as a collection of required properties, while the insertHtml tool requires a collection of text-value pairs
Example
$("#editor").kendoEditor({
tools: [
"bold",
"italic",
"underline",
"strikethrough",
"fontName",
"fontSize",
"foreColor",
"backColor",
"justifyLeft",
"justifyCenter",
"justifyRight",
"justifyFull",
"insertUnorderedList",
"insertOrderedList",
"indent",
"outdent",
"formatBlock",
"createLink",
"unlink",
"insertImage",
"insertHtml",
"viewHtml",
{
name: "customTool",
tooltip: "Custom Tool",
exec: function(e) {
var editor = $(this).data("kendoEditor");
// ...
}
}
],
insertHtml: [
{ text: "label 1", value: "<p>snippet 1</p>" },
{ text: "label 2", value: "<p>snippet 2</p>" }
]
});