EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: joe on October 03, 2017, 05:16:35 PM



Title: disable texteditor
Post by: joe on October 03, 2017, 05:16:35 PM
Can I disable the whole text editor?  I can't find a method that will allow me to do that.  Please help.  thx

I followed the example and created a text editor this way:
Code:
<div class="easyui-texteditor" title="TextEditor" style="width:700px;height:300px;padding:20px">
    <h3 style="text-align:center">TextEditor</h3>
    <p style="text-align:center">TextEditor is a lightweight html5 editor based on EasyUI. It is completely customizable to fit your needs.</p>
</div>


Title: Re: disable texteditor
Post by: jarry on October 04, 2017, 05:26:52 AM
Please call 'disable' or 'enable' method. Make sure to download the newest texteditor extension from https://www.jeasyui.com/extension/texteditor.php


Title: Re: disable texteditor
Post by: joe on October 04, 2017, 10:11:56 PM
I am using the text editor in a form.  on submit, the server throws a 500 error because of the html tags.  What is the best approach to parse it before submit?  Use the form's onSubmit event?   


Title: Re: disable texteditor
Post by: jarry on October 04, 2017, 10:58:59 PM
The form field requires the name attribute. You should set it for the texteditor component before submitting your form.