EasyUI Forum
May 25, 2024, 03:44:51 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: disable texteditor  (Read 3951 times)
joe
Newbie
*
Posts: 33


View Profile Email
« 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>
« Last Edit: October 03, 2017, 05:28:11 PM by joe » Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #1 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
Logged
joe
Newbie
*
Posts: 33


View Profile Email
« Reply #2 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?   
Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #3 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.
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!