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

High CPU Consumption when clearing Editor content

2 Answers 65 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Diego
Top achievements
Rank 1
Diego asked on 27 Mar 2018, 01:52 PM

Hi,

I am facing the following issue when I clear the value of the kendoEditor control. This happens only in Firefox (version 59.0.2) even using jquery or clearing the content manually through the UI. This is the code...

var editor = $("#editor").data("kendoEditor");

editor.value("");

When I clear the content the CPU consumption raises up to 50% and the browser ends up crashing. 

Please your support for this issue. 

2 Answers, 1 is accepted

Sort by
0
Diego
Top achievements
Rank 1
answered on 27 Mar 2018, 07:36 PM

Just for notice, when I set an empty string to the content I saw that the change handler of the Editor fires indefinitely. This is what causes the high cpu consumption. Please any hints on how to fix this??????

As I stated before, this only happens on Firefox.

0
Ianko
Telerik team
answered on 29 Mar 2018, 06:33 AM
Hi Diego,

I tried to reproduce the described behavior, but to no avail. You can check out this dojo example: https://dojo.telerik.com/ANICoruM. On my end, under Firefox, the change event is fired only once and only when the editable area is blurred. 
 
Regards,
Ianko
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Editor
Asked by
Diego
Top achievements
Rank 1
Answers by
Diego
Top achievements
Rank 1
Ianko
Telerik team
Share this question
or