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

Empty editor by jquery

2 Answers 649 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Mk
Top achievements
Rank 1
Mk asked on 13 Sep 2012, 12:38 PM
I am using json for comment on post where i use kendo ui editor for summary. on success json i am trying to clear editor value by jquery like $('#editor').val(' ');
its not working.If i remove kendo editor its working fine. please help.

2 Answers, 1 is accepted

Sort by
0
Francis
Top achievements
Rank 1
answered on 27 Sep 2012, 02:20 PM
I'm also trying to figure this out.  I have the editor in a dialog and when I close the dialog I want to clear the form.  But I tried clearning the underlying textarea with $("#the-textarea").val(''), but that doesn't do anything.  I was able to sucessfully clear other kendo enabled input boxes, but not an editor.  Please explain how to do this.

I've actually got the same problem with the numeric text box.  Since kendo creates a separate input, the value doesn't get cleared.
0
Kris Nobels
Top achievements
Rank 2
answered on 17 Jun 2013, 09:15 AM
var editor = $("#editor").data("kendoEditor");
editor.value('');
Tags
Editor
Asked by
Mk
Top achievements
Rank 1
Answers by
Francis
Top achievements
Rank 1
Kris Nobels
Top achievements
Rank 2
Share this question
or