Options for HTML editing in JavaFX

纵饮孤独 提交于 2019-12-10 14:19:34

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!