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

Problem with adding "tools" to Kendo UI Wrapper Editor for React

1 Answer 48 Views
Wrappers for React
This is a migrated thread and some comments may be shown as answers.
Khoa
Top achievements
Rank 1
Khoa asked on 27 Feb 2019, 12:54 PM

Hi,

I'm having a problem with a warning whenever I try to add "tools" to the Kendo UI Wrapper Editor for React to my component.

How can I fix this?

Here is the react html:

<Editor                                                             
tools = {["italic", "underline", "strikethrough", "justifyLeft", "justifyCenter", "justifyRight", "justifyFull", "insertUnorderedList", "insertOrderedList",
"indent", "outdent", "createLink", "unlink", "insertImage", "insertFile", "subscript", "superscript", "tableWizard", "createTable", "addRowAbove",
"addRowBelow", "addColumnLeft", "addColumnRight", "deleteRow", "deleteColumn", "viewHtml", "formatting", "cleanFormatting", "fontName",
"fontSize", "foreColor", "backColor", "print", "pdf"]}
/>

 

 

Here is the error:

Type 'string[]' is not assignable to type 'EditorTool[]'.
Type 'string' has no properties in common with type 'EditorTool'.ts(2322)

 

index.d.ts(3442, 9): The expected type comes from property 'tools' which is declared here on type 'IntrinsicAttributes & IntrinsicClassAttributes<Editor> & Readonly<{ children?: ReactNode; }> & Readonly<EditorProps>'

1 Answer, 1 is accepted

Sort by
0
Khoa
Top achievements
Rank 1
answered on 28 Feb 2019, 08:18 AM
Fixed
Tags
Wrappers for React
Asked by
Khoa
Top achievements
Rank 1
Answers by
Khoa
Top achievements
Rank 1
Share this question
or