简体   繁体   English

JSF 2的富文本编辑器

[英]Rich text editor for JSF 2

I searched around for a basic WYSIWYG rich text editor that I can use in a JSF 2 (VDL) application, but found nothing satisfactory.. in the sense that: 我搜索了一个基本的WYSIWYG富文本编辑器,我可以在JSF 2(VDL)应用程序中使用,但没有找到令人满意的......在某种意义上:

  • The editor is very extensive, and not configurable (like PrimeFaces) 编辑器非常广泛,不可配置(如PrimeFaces)
  • The editor doesn't work with VDL (like RichFaces) 编辑器不适用于VDL(如RichFaces)
  • Multiple instances of the editor cannot be used on the same page (like Tomahawk t:htmlArea) 编辑器的多个实例不能在同一页面上使用(如Tomahawk t:htmlArea)

I actually don't need all the fancy things like Fonts, Indenting/justification, undo/redo... just Bold, Italic, Lists and Hyperlinks would suffice. 我实际上并不需要所有奇特的东西,如字体,缩进/对齐,撤消/重做...只需粗体,斜体,列表和超链接就足够了。

Do you know of something that works well in this scenario, as well as gives out XHTML compliant markup, and works well with partial page refreshes(f:ajax), or would you recommend that I write my own? 你知道在这种情况下运行良好的东西,以及提供符合XHTML的标记,并且适用于部分页面刷新(f:ajax),或者你会建议我自己写吗?

Thank you! 谢谢!

Pradyumna Pradyumna

Just use TinyMCE. 只需使用TinyMCE。 As far as JSF is concerned, the input can just be treated like a textarea. 就JSF而言,输入可以像textarea一样对待。 It gets rendered on the client, and gets a postback of text with the form submission; 它在客户端上呈现,并使用表单提交获得文本的回发; what you do with it in while in the browser doesn't matter to JSF. 你在浏览器中使用它做什么对JSF无关紧要。

您可能想尝试IceFaces和这个富文本编辑器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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