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

2 posts, 0 answers
  1. Khoa
    Khoa avatar
    25 posts
    Member since:
    Sep 2018

    Posted 27 Feb 2019 Link to this post

    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>'

  2. Khoa
    Khoa avatar
    25 posts
    Member since:
    Sep 2018

    Posted 28 Feb 2019 in reply to Khoa Link to this post

    Fixed
Back to Top