问题
I'm looking to replace an HTML editor used within a Swing based application with one based on JavaFX.
As far as I can see, there are two possible options: 1) Use the JavaFX HTML editor. While this is quite nice for the features it does have, it is still lacking several other features (e.g. insert an image, insert a table, manipulate the image or table, etc.). I am also looking to include other features such as spellcheck and the ability to support custom tags. 2) Use the JavaFX WebView component and use an embedded editor such as TinyMCE.
So what would be the best option? Has anyone enhanced the JavaFX HTML editor? Are there any "gotchas" with going with the second option? Is there a third option I should consider?
回答1:
Defining a best option is an unanswerable question as that would depend on the application at hand.
For related info see:
- How to hide the controls of HTMLEditor?
- JavaFX HTMLEditor - Insert image function
- Set a local image in JavaFX HTMLeditor
- HtmlEditorCustomizationSample
- Discussion on pros and cons of HtmlEditor customization
- Webview with contenteditable cannot be focused programmatically
- Embedding a 3rd party editor JavaScript based editor in WebView
- Create table in HtmlEditor
来源:https://stackoverflow.com/questions/15931588/options-for-html-editing-in-javafx