Editor.d.ts file missing props like value and onChange

2 posts, 0 answers
  1. Sanjay
    Sanjay avatar
    12 posts
    Member since:
    Apr 2020

    Posted 06 May 2020 Link to this post

    Hi Team,

    I am not able find property like value and onChange in Editor.d.ts file of kendo react editor. I am using the 3.12.0 version of kendo react editor and only below properties are available in Editor.d.ts file. But as per documentation, editor also have properties like value and onChange.

     

     static propTypes: {
            defaultContent: PropTypes.Requireable<string>;
            defaultEditMode: PropTypes.Requireable<string>;
            contentStyle: PropTypes.Requireable<object>;
            dir: PropTypes.Requireable<string>;
            className: PropTypes.Requireable<string>;
            style: PropTypes.Requireable<object>;
            tools: PropTypes.Requireable<any[]>;
            onMount: PropTypes.Requireable<(...args: any[]) => any>;
            onPasteHtml: PropTypes.Requireable<(...args: any[]) => any>;
            onExecute: PropTypes.Requireable<(...args: any[]) => any>;
        };

     

    I reinstalled the kendo react editor or even removed the node modules file. Even after that the properties are not available for Editor component. 

    Please let me know if I am missing something here.

     

    Regards,

    Sanjay

  2. Stefan
    Admin
    Stefan avatar
    3034 posts

    Posted 07 May 2020 Link to this post

    Hello, Sanjay,

    This is because those properties were just added in version 3.13.0:

    https://www.telerik.com/kendo-react-ui/components/changelogs/ui-for-react/#toc-3130

    `editor: add controlled mode`

    Please update to the latest version and advise if the properties are available.

    Regards,
    Stefan
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
Back to Top