EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: JeroenvdV on January 29, 2023, 03:20:49 AM



Title: Form 'clear' method does not clear Texteditor content
Post by: JeroenvdV 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>


Title: Re: Form 'clear' method does not clear Texteditor content
Post by: jarry 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


Title: Re: Form 'clear' method does not clear Texteditor content
Post by: JeroenvdV on February 05, 2023, 01:08:57 PM
Thanks Jarry, it works well.