This content has been marked as final. Show 5 replies
Is it possible to switch off the controls and use the edit area only?Yes, there are ways to customize it:
https://gist.github.com/2514709 code sample
Re: Customizing HTMLEditor element "Thread: Customizing HTMLEditor element"
http://stackoverflow.com/questions/10075841/how-to-hide-the-controls-of-htmleditor (last section has info on hiding the toolbar - is done by code, but you might be able to achieve the same by a css stylesheet - which would be a better implementation - dgrieve's comment was "You can extract html-editor.css from jfxrt.jar to see what styles it uses.").
There is also a jira to provide an api to control HTMLEditor allow programmatic control of editing capability, but that hasn't been actioned yet.
Additionally you can use a WebView with contenteditable="true" see:
After investigation, the WebView or HTMLEditor is quite hard to use for my use case. I want to show the styled text (on character level)...after changing the style shall be reset (on character level). For instance a green background of a char shall be now white. After editing the text is needed for further processing. If I get the text form WebView or HTMLEditor, I get also the html tags. The html code could be removed, but if the user enters something like html, it will be removed also.
Best would be a TextField with styling capability on character level, but it seems like that I have to implement this on my own?