EasyUI Forum
April 26, 2024, 12:09:23 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: Make texteditor read-only & hide toolbar  (Read 5345 times)
chorauoc
Newbie
*
Posts: 23


View Profile Email
« 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
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 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: []
});
Logged
chorauoc
Newbie
*
Posts: 23


View Profile Email
« Reply #2 on: January 31, 2017, 02:56:07 AM »

Thanks , works as expected  Smiley

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!