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

Reset Kendo Editor to the Initial Value

1 Answer 870 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Grace
Top achievements
Rank 1
Grace asked on 21 Nov 2019, 12:04 PM

I'm trying to reset my Editor back to the initial values i have when the page loads on a button press.

 

Is there a way to to this other than setting the values again?

I am able to clear all the values with the following :

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

        editor.value("")

Would i have to input the initial text again in the .value()?

1 Answer, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 25 Nov 2019, 08:00 AM

Hello Grace,

Yes, resetting again the initial value using the value() method of the Editor is the appropriate way of achieving the desired result. Therefore, I would suggest you store the initial value of the widget in a local variable and, if needed, use that variable and pass it to the value() method.

Regards,
Veselin Tsvetanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Editor
Asked by
Grace
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Share this question
or