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

onBlur-event at editor

2 Answers 819 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Matthias
Top achievements
Rank 1
Matthias asked on 03 Jul 2019, 10:42 AM
Hi,

I'm trying to implement an onBlur-event with an associated function in the editor for Kendo react.
I assume thar can be done with the onMount event and setting the appropriate prop of the EditorView,
but i can't get it quite right.

2 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 04 Jul 2019, 08:49 AM
Hello, Matthias,

This can be achieved by programmatically attaching the desired event and the handler to the EditorView. These events can be attached on the onMount event of the Editor:

https://www.telerik.com/kendo-react-ui/components/editor/api/EditorProps/#toc-onmount

This is an example showcasing how to attach the onBlur event:

https://stackblitz.com/edit/editor-dom-events-ts1j99?file=app/main.jsx

I hope this is helpful.

Regards,
Stefan
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Matthias
Top achievements
Rank 1
answered on 04 Jul 2019, 11:39 AM

Hello Stefan,

thanks, that works.

 

Regards,

Matthias

Tags
General Discussions
Asked by
Matthias
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Matthias
Top achievements
Rank 1
Share this question
or