This is a migrated thread and some comments may be shown as answers.
BUG: Editor Change event doesn't fire when insert link box inserts link
3 Answers 9 Views
This is a migrated thread and some comments may be shown as answers.
Nathan
Top achievements
Rank 2
Nathan asked on 22 Nov 2016, 04:54 PM

As per the title, the KendoEditor "Change" event doesn't fire when insert link box actually inserts the link.

It gets fired if the focus changes afterward though... even if you click the start button.

You can actually see this in the KendoUI demonstration page: http://demos.telerik.com/kendo-ui/editor/events

 

The problem with this is if you need to enable a save button so they can save the changes, they have to click somewhere first.

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 23 Nov 2016, 03:06 PM
Hello,

I tested the events demo http://screencast.com/t/PUDVgNmdGB and noticed that the select event is fired after inserting a link from the Insert Link dialog. The same select event is fired when firing the other commands too.

The change event is fired when the editor is blured, i.e. when you click outside of the editor.

Best regards,
Rumen
Telerik by Progress
Kendo UI is ready for Visual Studio 2017 RC! Learn more.
0
Nathan
Top achievements
Rank 2
answered on 23 Nov 2016, 04:08 PM

Nobody wants to be using the SELECT even to try to look for changes.  Change & KeyUp maybe, but not select.  This seems like something pretty obvious people would expect the control to be able to... to let you pick up on when the contents has changed?

If you use the select event the code will be firing when they use the cursors to move around the contents.  It will run like a dog.  Some proper event needs to fire after the buttons etc change the contents.

0
Rumen
Telerik team
answered on 25 Nov 2016, 11:08 AM
Hi Nathan,

As explained in the documentation the change event of Kendo Editor fires when Editor is blurred and its content has changed. The event behavior is quite similar to the onchange event of the standard <input type="text"> HTML element as you can test here.

If you insert a link the content is changed and once the editor is blured, the change event will be triggered to note the change.

If you think that there is a need of a new client event, please submit your feature request in the Kendo User Voice feedback portal.

Best regards,
Rumen
Telerik by Progress
Kendo UI is ready for Visual Studio 2017 RC! Learn more.
Asked by
Nathan
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Nathan
Top achievements
Rank 2
Share this question
or