aspose file tools*
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
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: 1083
    
  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: 144
    
    9
Call htmlEditor.setDisable(true) to disable the html editor.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTMLEditor - How to set its editable property to false