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

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

1 Answer 88 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sanjay
Top achievements
Rank 1
Sanjay asked on 06 May 2020, 02:07 PM

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

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 07 May 2020, 01:59 PM

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.
Tags
General Discussions
Asked by
Sanjay
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or