【发布时间】:2016-05-09 11:12:30
【问题描述】:
我想在我的 liferay 中添加一个新的 ckeditor,因为我们需要限制可用的功能。但是,我不想更改原来的,因为我们以后可能需要它以不同的形式。
如何添加一个新的 ckeditor 来创建网络内容文章的结构?我是否需要为 liferay 或类似的东西创建一个新主题?
信息:我们的 liferay 运行在 Jboss 服务器上
编辑:
我创建了一个覆盖html\js\editor\ckeditor\ckconfig.jsp 文件的钩子并添加了
config.toolbar_Mini = [
['Bold', 'Italic', 'Underline', 'Strike'],
['BulletedList']
];
此外,我还更改了\html\portlet\journal\article\content.jsp 文件中有关liferay-ui:input editor 的行。
<div class="journal-article-component-container">
<liferay-ui:input-editor contentsLanguageId="<%= Validator.isNotNull(toLanguageId) ? toLanguageId : defaultLanguageId %>" editorImpl="<%= EDITOR_WYSIWYG_IMPL_KEY %>" name="articleContent" toolbarSet="Mini" width="100%" />
</div>
其他已经可用的toolbarSet 选项(例如phone或simple)也无效。
我还重新启动了我的 jboss-server 几次 - 仍然没有效果。
另外,html\js\editor\ckeditor\config.js 文件中所做的更改似乎对任何东西都没有影响(例如 alert("foo"))。
【问题讨论】:
标签: ckeditor liferay liferay-6 liferay-6.2