我已經按照以下步驟在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服務器需要做哪些其他更改?