This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTMLEditor - How to set its editable property to false

 
Bon Gun
Greenhorn
Posts: 8
  • 0
  • 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
  • 0
  • 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: 235
12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Call htmlEditor.setDisable(true) to disable the html editor.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic