Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTMLEditor - How to set its editable property to false

 
Bon Gun
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?
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
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">
 
John Damien Smith
Ranch Hand
Posts: 287
13
  • 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