This is a migrated thread and some comments may be shown as answers.

JQuery Editor Tools on Instantiation with TypeScript

1 Answer 48 Views
Editor
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 25 Jun 2018, 09:17 PM

I seem to be having an issue with the JQuery Editor and customizing the tools.  If I just call $("#element").kendoEditor(); everything loads with the standard toolbar.  However when I try to set it up with tools options like so: $("#element").kendoEditor({tools:["bold", "italic", "underline","createLink", "unlink"]});  I get the following error in the image.  Any ideas?

 

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 27 Jun 2018, 10:04 AM
Hi David,

The tools is defined as an array of EditorTools and thus you will need to define a more specific signature for the tools using TypeScript: 

{
  tools: [
    { name: "bold" },
    { name: "italic" },
    { name: "underline" },
    { name: "createLink" },
    { name: "unlink" }
  ]
}


Regards,
Ianko
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Editor
Asked by
David
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or