简体   繁体   中英

JavaFX HTMLEditor - Insert image function

I'm using JavaFX integrated HTMLEditor. All the functions that it has are fine but I need to have also the function of inserting an image inside the HTML text. Do you know some source which I could use? Or some other HTML (WYSIWYG) editor that could be used inside JavaFX and it has this functionality ? I can program this functionality into the existing JavaFX HTMLEditor by myself, but I prefer to ask before I start doing something :)

Thank you very much for your answers ;)

I'd advise just customizing the existing JavaFX HTMLEditor, if it does most things you need with the exception of adding images and the look and feel of it is basically ok for you.

I created a code sample to assist in some JavaFX HTMLEditor customization tasks.

Another option you could toy with for a very basic html editor is a WebView with contenteditable set to true. Though I haven't tried it with images - maybe it will work ok.

If the above options don't work for you there there are heaps of javascript based editors out there to choose from.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM