我想在我的 liferay 中添加一个新的 ckeditor,因为我们需要限制可用的功能。但是,我不想更改原来的,因为我们以后可能需要它以不同的形式。
如何添加可用于为网络内容文章创建结构的新 ckeditor?我是否需要为 liferay 或类似的东西创建一个新主题?
信息:我们的 liferay 在 Jboss 服务器上运行
编辑:
我创建了一个覆盖html\js\editor\ckeditor\ckconfig.jsp
文件的钩子并添加了
config.toolbar_Mini = [
['Bold', 'Italic', 'Underline', 'Strike'],
['BulletedList']
];
此外,我已经更改了文件中有关的liferay-ui:input editor
行\html\portlet\journal\article\content.jsp
。
<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")
)。