Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Options for HTML editing in JavaFX

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?

like image 875
Avrom Avatar asked Apr 10 '13 16:04

Avrom


People also ask

Can you use JavaScript in JavaFX?

A JavaFX application can communicate with the web page in which it is embedded by using a JavaScript engine. The host web page can also communicate to embedded JavaFX applications using JavaScript.

What are the 3 components of a JavaFX application in the correct corresponding order where number 1 is the lowest level and number 3 is the highest level?

In general, a JavaFX application will have three major components namely Stage, Scene and Nodes as shown in the following diagram.

What is JavaFX UI controls?

JavaFX provides several classes in the package javafx. scene. control. To create various GUI components (controls), JavaFX supports several controls such as date picker, button text field, etc. Each control is represented by a class; you can create a control by instantiating its respective class.

Can you use JavaFX without Scene Builder?

You don't have to use FXML or SceneBuilder. You can simply create the objects yourself and add them to your Scene/Stage yourself. It's entirely open as to how you implement it. I've implemented a Screen Management library where it handles either FXML or manually created screens.


1 Answers

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
like image 159
jewelsea Avatar answered Sep 21 '22 22:09

jewelsea