EasyUI Forum
May 03, 2024, 06:06:57 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to programmatically clear text inside easyui texteditor  (Read 4386 times)
Alfred
Full Member
***
Posts: 134


-Licensed User-


View Profile
« 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.
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: July 30, 2018, 07:01:48 PM »

Call the 'setValue' method with empty string to clear the content.
Code:
$('#te').texteditor('setValue', '');
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!