我試圖添加證明插件,以便能夠對齊文本的右,左或中心。但在按照文檔(http://apostrophecms.org/docs/tutorials/howtos/ckeditor.html)中的說明操作後,我不知道該插件是否應該位於特定文件夾中(我的位置是public/modules /撇號/ areas/js/ckeditorPlugins/justify /),因爲它在站點中消失被加載,但如果我將其包含在其他文件夾(如public/plugins/justify)中仍然不起作用。Ckeditor插件配置不工作
這是我的代碼,以防萬一:(位於lib/modules目錄/撇號區/公/ JS/user.js的)
apos.define('apostrophe-areas', {
construct: function(self, options) {
// Use the super pattern - don't forget to call the original method
var superEnableCkeditor = self.enableCkeditor;
self.enableCkeditor = function() {
superEnableCkeditor();
// Now do as we please
CKEDITOR.plugins.addExternal('justify', '/modules/apostrophe-areas/js/ckeditorPlugins/justify/', 'plugin.js');
};
}
});
而且,這將是很好知道插件如何應在可編輯小部件的工具欄設置中調用。 謝謝!