EasyUI Forum

General Category => General Discussion => Topic started by: chorauoc on January 30, 2017, 05:18:33 AM



Title: Make texteditor read-only & hide toolbar
Post by: chorauoc on January 30, 2017, 05:18:33 AM
Hi,

It seems this question odd, but i have a requirement that i need to Make texteditor extension read-only & hide it's toolbar, so how can i achive this


Title: Re: Make texteditor read-only & hide toolbar
Post by: jarry on January 30, 2017, 05:26:08 PM
To set it read only, call $('#te').attr('contenteditable', false).
To hide the toolbar, please set the 'toolbar' property to empty:
Code:
$('#te').texteditor({
  toolbar: []
});


Title: Re: Make texteditor read-only & hide toolbar
Post by: chorauoc on January 31, 2017, 02:56:07 AM
Thanks , works as expected  :)