0

我需要在 liferay 6.2 中为期刊文章限制 ckeditor 的功能。ckconfig.jsp我尝试了不同的方法,例如使用新工具栏覆盖的钩子(请参阅我的其他问题herehere),但这不起作用。现在我找到了另一种方法,可以通过在我的portal-ext.properties.

这些是我添加到 portal-ext.properties 文件中的行:

editor.wysiwyg.default=tinymce
editor.wysiwyg.portal-web.docroot.html.portlet.blogs.edit_entry.jsp=ckeditor
editor.wysiwyg.portal-web.docroot.html.portlet.calendar.edit_configuration.jsp=ckeditor
editor.wysiwyg.portal-web.docroot.html.portlet.enterprise_admin.view.jsp=ckeditor
editor.wysiwyg.portal-web.docroot.html.portlet.invitation.edit_configuration.jsp=ckeditor
editor.wysiwyg.portal-web.docroot.html.portlet.journal.edit_article_content.jsp=fckeditor
editor.wysiwyg.portal-web.docroot.html.portlet.journal.edit_article_content_xsd_el.jsp=fckeditor
editor.wysiwyg.portal-web.docroot.html.portlet.journal.edit_configuration.jsp=fckeditor
editor.wysiwyg.portal-web.docroot.html.portlet.login.configuration.jsp=ckeditor
editor.wysiwyg.portal-web.docroot.html.portlet.mail.edit.jsp=ckeditor
editor.wysiwyg.portal-web.docroot.html.portlet.mail.edit_message.jsp=ckeditor
editor.wysiwyg.portal-web.docroot.html.portlet.message_boards.edit_configuration.jsp=ckeditor
editor.wysiwyg.portal-web.docroot.html.portlet.shopping.edit_configuration.jsp=ckeditor
editor.wysiwyg.portal-web.docroot.html.portlet.wiki.edit.html.jsp=ckeditor   

但是,似乎始终采用默认编辑器,并且忽略所有其他设置。这是一个错误还是我在这里遗漏了什么?

我还尝试通过使用省略默认编辑器,editor.wysiwyg.default=但是当我想添加或编辑文章时没有编辑器出现。

有人可以帮我解决这个问题吗?

4

1 回答 1

0

最近,我将这些设置添加到 liferay-portal-6.2-ce-ga4 安装的 portal-ext.properties 中,并且相应地更改了编辑器。所以,至少在这里可能没有错误:

editor.wysiwyg.portal-web.docroot.html.portlet.message_boards.configuration.jsp=ckeditor
editor.wysiwyg.portal-web.docroot.html.portlet.message_boards.edit_message.bb_code.jsp=ckeditor
editor.wysiwyg.portal-web.docroot.html.portlet.message_boards.edit_message.html.jsp=ckeditor

我没有editor.wysiwyg.default=...在 portal-ext.properties 中添加一个。

于 2016-06-03T10:13:08.507 回答