JavaFX HTMLEditor - 插入图像功能 [英] JavaFX HTMLEditor - Insert image function

查看:758
本文介绍了JavaFX HTMLEditor - 插入图像功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用JavaFX集成的HTMLEditor。它拥有的所有功能都很好,但我还需要在HTML文本中插入图像的功能。
你知道我可以用的一些来源吗?或者其他一些可以在JavaFX中使用的HTML(WYSIWYG)编辑器,它有这个功能吗?
我可以自己将这个功能编程到现有的JavaFX HTMLEditor中,但在开始做之前我更愿意问一下:)

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 ;)

推荐答案

我建议只定制现有的JavaFX HTMLEditor,如果它能完成您需要的大部分工作,除了添加图片和它的外观基本上对你没问题。

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.

我创建了一个代码示例,以协助一些JavaFX HTMLEditor定制任务。

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

您可以为一个非常基本的html编辑器玩的另一个选项是将 contenteditable 设置为true的WebView。虽然我没有用图像试过 - 也许它可以正常工作。

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.

如果以上选项对你不起作用那么就有大量基于javascript的编辑器了有可供选择。

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

这篇关于JavaFX HTMLEditor - 插入图像功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆