下面的配置設置代表期刊文章CK-編輯屏幕配置。 來自ckconfig.jsp的源代碼。 config.toolbar_liferayArticle = [ ['Styles', 'FontSize', '-', 'TextColor', 'BGColor'], ['Bold', 'Italic', 'Underline', 'Strike'], ['Subscript', 'Superscript'], '/', ['Undo', 'Redo', '-', 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'SelectAll', 'RemoveFormat'], ['Find', 'Replace', 'SpellChecker', 'Scayt'], ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'], ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'], '/', ['Source'], ['Link', 'Unlink', 'Anchor'], ['Image', 'Flash', <c:if test="<%= XugglerUtil.isEnabled() %>">'Audio', 'Video',</c:if> 'Table', '-', 'Smiley', 'SpecialChar', 'LiferayPageBreak'] ];
所以,如果你想有不同的配置設置,期刊,文章的CKEditor的,那麼你必須使用Liferay的插件鉤修改ckconfig.jsp config.toolbar_liferayArticle。
e.g config.toolbar_liferayArticle=[ ['Bold', 'Italic', 'Underline', 'Strike'], ['BulletedList'] ];
在使用插件掛機您修改ckconfig.jsp? –
是的,但沒有結果 –
您能否提供更多關於您嘗試過以及想要實現的信息? –