EasyUI Forum

General Category => General Discussion => Topic started by: Alfred on July 30, 2018, 03:41:34 AM



Title: How to programmatically clear text inside easyui texteditor
Post by: Alfred on July 30, 2018, 03:41:34 AM
I don't see any method in the doc for clearing the text inside the texteditor. Please help.


Title: Re: How to programmatically clear text inside easyui texteditor
Post by: jarry on July 30, 2018, 07:01:48 PM
Call the 'setValue' method with empty string to clear the content.
Code:
$('#te').texteditor('setValue', '');