Java WYSIWYG HTML editor [closed]

我的未来我决定 提交于 2019-11-30 12:57:23

问题


I'm working on a project and need a simple, free, Java HTML WYSIWYG editor. Can anyone point me in the right direction?.

It only has a small space to fit into, so something fairly simple would be best.


回答1:


Ekit seems fairly light (160Ko in one jar, source and jar here)




回答2:


I was searching for the same stuff. Have a look at these two solutions:

  • SHEF(LGPL)
  • Sferyx HTML Editor (Commercial)

I've found another, very nice solution: Use a JFXPanel to incorporate the HTML WYSIWYG editor component that's included in the latest versions of JavaFX. This is the way i'll go.




回答3:


If you need a good WYSIWYG HTML editor then I recommended JWebEngine. It is the only one that I know that pass the ACID1 browser test and the mail-acid test. The most other Java HTML editors based on the javax.swing.text.html.HTMLDocument and have all the same bugs. The support of CSS is very poor in the HTMLDocument. JWebEngine has a very good support for viewing HTML with CSS. But it is also compatible JEditorPane or JTextPane and you can use it together with third party tools like the spell checker JOrtho.




回答4:


Have a look at Metaphase Editor. It's a WYSWIWYG HTML Editor component for Java and is licensed under LGPL. The binaries and sources are available at Project Kenai.




回答5:


If it the editor should run in a browser then there is nothing to do with Java and you can use any of these:

  • TinyMCE
  • CKEditor
  • YUI Editor
  • jQuery WYSIWYG

but if you need to embed the HTML editor into a desktop app then you probably need to find the one you like and try which fits best.



来源:https://stackoverflow.com/questions/1893429/java-wysiwyg-html-editor

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