EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: JeroenvdV on February 08, 2023, 12:43:08 AM



Title: Texteditor 'disable' and 'readonly' methods show the same behaviour
Post by: JeroenvdV 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');

(http://Texteditor_disabled_readonly=true.png)
(http://Disabled_button.png)


Title: Re: Texteditor 'disable' and 'readonly' methods show the same behaviour
Post by: jarry 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


Title: Re: Texteditor 'disable' and 'readonly' methods show the same behaviour
Post by: JeroenvdV on February 10, 2023, 05:24:13 AM
Thanks Jarry, looks great!