EasyUI Forum
April 29, 2024, 07:35:14 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: Texteditor 'disable' and 'readonly' methods show the same behaviour  (Read 992 times)
JeroenvdV
Newbie
*
Posts: 21


View Profile Email
« on: February 08, 2023, 12:43:08 AM »

Hi,

According to the documentation of the Texteditor extension the 'disable' method will disable the texteditor component and the 'readonly' method enables or disable the readonly mode. However, both commands below show the same behaviour. Whether I use the 'readonly' method or 'disable' method or both, the text cannot be edit, but the texteditor buttons are not greyed-out and can still be clicked, see figure (though no command is executed, so that is good).
So I wonder, what is the difference between the two?

I would expect that with the 'disable' method the texteditor buttons would be greyed out and can't be clicked (comboboxes remain closed) like in the 2nd figure below.

Code:
$('#te').texteditor('readonly', true);
$('#te').texteditor('disable');


Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: February 09, 2023, 04:40:12 AM »

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


View Profile Email
« Reply #2 on: February 10, 2023, 05:24:13 AM »

Thanks Jarry, looks great!
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!