Completed
Last Updated: 18 Jan 2024 10:15 by ADMIN
Release 2024 Q1
Andy
Created on: 06 Dec 2023 12:33
Category: Editor
Type: Bug Report
1
CustomTool does not expose an Icon() API configuration in the Editor

Bug report

CustomTool does not expose an Icon() API configuration in the Editor

Current behavior

Currently, defining a custom tool does not enable you to specify an icon which tends to be permitted in the Kendo UI for jQuery Editor incarnation. For example:

$("#editor").kendoEditor({
    tools: [
        {
            name: "Toggle",
            icon: "toggle-full-screen-mode"
        }
    ]
});

The following dojo showcases this behavior.

Expected/desired behavior

It would be beneficial if there is a possibility to explicitly define an icon in the MVC and Core wrappers. For instance:

@(Html.Kendo().Editor()
    .Name("editor")
    .Tools(tools => tools
        .Clear()
        .CustomButton(button => button
            .Name("ToggleFullScreen")
            .Icon("toggle-full-screen-mode")
        )
    )
)

Environment

  • Kendo UI version: 2023.1.1114
  • Browser: [all]
0 comments