java复杂文本编辑器,Java中的WYSIWYG文本编辑器

I'd like to collect all WYSIWYG text editors for Java here.

Some rules for entries:

There must be a link to the project/product

You must state whether it's open source or commercial

Is it possible to extend the editor (add new features like a "violet centered sudoku")? Is that simple or complex?

Does it come with lots of features (fancy character and paragraph styles with online spell checking for several languages in the same document) or just the basics (bold, italics, no underline)?

List important dependencies (does it run on bare Java with Swing? SWT? MacOS?)

Your personal opinion

This list should help developers determine which editor to choose. I'm not looking for "the best" but more "what's there".

解决方案

JWebEngine

I recommend JWebEngine. It is the only one that I know that passes the ACID1 browser test and the mail-acid test. Most other Java HTML editors are based on the javax.swing.text.html.HTMLDocument and have all the same bugs. The support of CSS is very poor with HTMLDocument. JWebEngine has very good support for viewing HTML with CSS.

Link to the website. There are also online samples.

Commercial license

It is very simple to extend. The vendor is using it for many different things like editor, HTML printing engine, showing custom placeholders, etc. There is no problem with the visibility of classes like with the Sun HTMDocument.

It based on javax.swing.text.JEditorPane or javax.swing.text.JTextPane and you can use it together with third party tools like the spell checker JOrtho.

It is pure Java and runs on all platform with Java SE 5 or higher. It also run in non-signed applets.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值