• Post Reply Bookmark Topic Watch Topic
  • New Topic

HTMLEditor - How to set its editable property to false  RSS feed

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to disable an HTMLEditor so that the user cant perform inputs to it?
 
Bartender
Posts: 1103
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The Javadoc for setHtmlText() reads thus:

Note that if the contentEditable property on the tag of the provided HTML is not set to true, the HTMLEditor will become read-only.



So, you can try: <body contentEditable="false">
 
Ranch Hand
Posts: 360
22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Call htmlEditor.setDisable(true) to disable the html editor.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!