New to Kendo UI for jQuery? Download free 30-day trial

Create Custom Editor Tool


Product Version 2018.1.117
Product Editor for Progress® Kendo UI®


How can I add a font-weight tool to the Editor whose value changes based on the selected font?


Register a new tool for the Editor.

<textarea id="editor" rows="10" cols="30" style="width:100%;height:400px">
    Kendo UI Editor allows your users to edit HTML in a familiar, user-friendly way.<br>
    In this version, the Editor provides the core HTML editing engine, which includes basic text formatting, hyperlinks, lists, and image handling.
    The widget outputs identical HTML across all major browsers, follows accessibility standards and provides API for content manipulation.

        new kendo.ui.editor.FontTool({
            domAttr: "fontWeight",
            defaultValue: [{ text: "fontWeight",  value: "normal" }],
            template: new kendo.ui.editor.ToolTemplate({
                template: kendo.ui.editor.EditorUtils.comboBoxTemplate,
                title: "Font Size"

    var editor = $("#editor").kendoEditor({
        tools: [
                name: "fontWeight",
                items: [
                    { text: "bold", value: "900" }
        messages: {
            fontWeight: "normal",

    var fontNameCombo = kendo.widgetInstance($(editor.wrapper.find("select.k-fontName")[0]));

    function fontNameComboChange(e) {
        var fontWeightCombo = kendo.widgetInstance($(editor.wrapper.find("select.k-fontWeight")[0]));

            { text: "Light", value: "300" },
            { text: "Medium", value: "500" },
            { text: "Bold", value: "900" },

    fontNameCombo.bind("change", fontNameComboChange);

See Also

In this article