1

我有一个剑道编辑器,如下所示

$("#editor").kendoEditor({
    tools: [
        "bold",
        "fontSize",
        "foreColor",
        "backColor",
        {
            name: "fontName",
            items: [
                { text: "Andale Mono", value: "Andale Mono" },
                { text: "Arial", value: "Arial" },
                { text: "Arial Black", value: "Arial Black" },
                { text: "Book Antiqua", value: "Book Antiqua" },
                { text: "Comic Sans MS", value: "Comic Sans MS" },
                { text: "Courier New", value: "Courier New" },
                { text: "Georgia", value: "Georgia" },
                { text: "Helvetica", value: "Helvetica" },
                { text: "Impact", value: "Impact" },
                { text: "Symbol", value: "Symbol" },
                { text: "Tahoma", value: "Tahoma" },
                { text: "Terminal", value: "Terminal" },
                { text: "Times New Roman", value: "Times New Roman" },
                { text: "Trebuchet MS", value: "Trebuchet MS" },
                { text: "Verdana", value: "Verdana" },
                { text: "Webdings", value: "Webdings" },
                { text: "Wingdings", value: "Wingdings" },
                { text: "Calibri", value: "Calibri" },
                //{ text: "tamil-SARURG", value: "tamil-SARURG" }

            ]
        },
        {
            name: "custom",
            tooltip: "Add page break",
            exec: function (e) {
                var editor = $(this).data("kendoEditor");
                editor.exec("inserthtml", { value: "<p STYLE='page-break-before: always'>Page break here!</p>" });
            }
        }
    ],
});

现在我想在我的剑道编辑器中添加自定义字体名称,字体名称称为

泰米尔语-SARURG

我还在我的代码中添加了以下行

{ 文本:“泰米尔语-SARURG”,值:“泰米尔语-SARURG”}

但它没有奏效。

如何在剑道编辑器中添加自定义字体名称

4

0 回答 0