我试图添加证明插件,以便能够对齐文本的右,左或中心。但在按照文档(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');
};
}
});
而且,这将是很好知道插件如何应在可编辑小部件的工具栏设置中调用。 谢谢!