EasyUI Forum
May 14, 2024, 06:49:48 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: Form 'clear' method does not clear Texteditor content  (Read 1041 times)
JeroenvdV
Newbie
*
Posts: 21


View Profile Email
« on: January 29, 2023, 03:20:49 AM »

Hi,

I am using a Texteditor in my form. When I clear the form using the 'clear' method it does not clear the texteditor content.
Of course there are other ways to do that, but it would be nice if the Form's 'clear' method can do that.

Code:
        <form id="ff" method="post">           
            <div class="easyui-texteditor" title="TextEditor" style="width:700px;height:300px;padding:20px">
                Some text...
            </div>       
        </form>

        <div style="text-align:center;padding:5px 0">
            <a href="javascript:void(0)" class="easyui-linkbutton" onclick="clearForm()" style="width:80px">Clear</a>
        </div>       
       
        <script>
            function clearForm(){
                $('#ff').form('clear');
            }
        </script>
Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #1 on: February 03, 2023, 07:13:09 PM »

This issue has been solved. Please download the latest version from https://www.jeasyui.com/extension/texteditor.php
Logged
JeroenvdV
Newbie
*
Posts: 21


View Profile Email
« Reply #2 on: February 05, 2023, 01:08:57 PM »

Thanks Jarry, it works well.
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!