2011-04-02 33 views

回答

1

Liferay可以配置为使用多个编辑器,如TinyMCE或CKEditor。此配置通常通过在主portal-ext.properties文件设置属性,它扩展了嵌入式portal.properties完成:

# You can configure individual JSP pages to use a specific implementation of 
    # the available WYSIWYG editors: ckeditor, ckeditor_bbcode, ckeditor_creole, 
    # fckeditor, liferay, simple, tinymce, or tinymce_simple. 
    # 
    editor.wysiwyg.default=ckeditor 
    (...) 
    editor.wysiwyg.portal-web.docroot.html.portlet.journal.edit_article_content.jsp=ckeditor 

它可以用于创建尤其设计为允许的所述激活一个新的JSP专用语法编辑器。 Liferay使用CodePress作为它的一些配置的XML编辑器,这可能是一个好的开始:查看 liferay-portal-6.1.0/tomcat-6.0.29/webapps/ROOT/html/js/editor/codepress/index.html作为开始。

Arnaud

+0

嗨Arnaud,谢谢。 – 2011-04-04 19:09:06