O'Reilly logo

Learning Kendo UI Web Development by John Adams

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding the Styles tool

The Styles tool can be added to the HTML Editor toolbar to give the user access to some predefined styles that you have created. This could be useful if your users are using a special theme or if there are global styles that you want the users to have easy access to. To enable this, you configure the tools through the kendoEditor object and specify which options should appear in a drop-down list of styles. Here is an example:

$("#editor").kendoEditor({ tools: [ "bold", "italic", "underline", "strikethrough", "fontName", "fontSize", "foreColor", "backColor", "justifyLeft", "justifyCenter", "justifyRight", "justifyFull", "insertUnorderedList", "insertOrderedList", "indent", "outdent", "formatBlock", "createLink", "unlink", ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required