This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JavaFX and the fly likes HTMLEditor - How to set its editable property to false Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JavaFX
Bookmark "HTMLEditor - How to set its editable property to false" Watch "HTMLEditor - How to set its editable property to false" New topic
Author

HTMLEditor - How to set its editable property to false

Bon Gun
Greenhorn

Joined: May 30, 2013
Posts: 8
Is there a way to disable an HTMLEditor so that the user cant perform inputs to it?
Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1076
    
  10

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">


Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
John Damien Smith
Ranch Hand

Joined: Jan 26, 2012
Posts: 130
    
    9
Call htmlEditor.setDisable(true) to disable the html editor.
 
wood burning stoves
 
subject: HTMLEditor - How to set its editable property to false
 
Similar Threads
How the heck do you enter a image into a JEditorPane???
online htmleditor
Error in xml schema
JSF HTML Editor
Have any good idea to put image on TextArea ?