我已经按照以下步骤在Liferay 6.2 GA4中添加CKEditor YouTube插件,并且我可以在内容部分编辑器中添加插件。在Liferay中安装CKEditor插件
CKEditor的YouTube的插件:http://ckeditor.com/addon/youtube
所有的插件都位于$ {LIFERAY_HOME} \ Tomcat的7.0.42 \的webapps \ ROOT \ HTML \ JS \编辑\ CKEditor的\ plugins文件夹。
1)将youtube插件文件夹放入插件文件夹中。
2)添加下面的位于$ {} LIFERAY_HOME config.js文件变化\ Tomcat的7.0.42 \的webapps \ ROOT \ HTML \ JS \编辑\ CKEditor的文件夹
CKEDITOR.editorConfig = function(config) {
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.extraPlugins = 'youtube';
};
3)添加继位于$ {LIFERAY_HOME} \ Tomcat的7.0.42 \的webapps \ ROOT \ HTML \ JS \编辑\ CKEditor的文件夹
config.extraPlugins = 'ajaxsave,media,restore,scayt,wsc,youtube';
config.toolbar_liferayArticle = [
['Styles', 'FontSize', '-', 'TextColor','BGColor'],
['Bold', 'Italic', 'Underline', 'Strike'],
['Subscript', 'Superscript'],['Youtube'],
'/',['Undo', 'Redo', '-', 'Cut', 'Copy', 'Paste',
'PasteText', 'PasteFromWord', '-', 'SelectAll','RemoveFormat'],
4)重新启动的Liferay的ckconfig.jsp文件'的YouTube'项。
我知道这可以通过使用Liferay Hook项目来实现。
但是,当我使用Liferay Structures and Templates时,这个插件没有出现在CKEditor中。 Liferay服务器需要做哪些其他更改?