テキストを右揃えまたは左揃えまたは中央揃えにするための正当化プラグインを追加しようとしました。しかし、ドキュメント(http://apostrophecms.org/docs/tutorials/howtos/ckeditor.html)の指示に従った後、私はプラグインが特定のフォルダ(私はpublic/modules/apostrophe-areas/js/ckeditorPlugins/justify /にあります)がサイトがロードされますが、私がpublic/plugins/justifyのような他のフォルダに含めると、まだ動作しません。Ckeditorプラグインの設定が正しく動作しません。
これは念のために私のコードです:(LIB /モジュール/アポストロフィ-エリア/公共/の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');
};
}
});
また、どのようにプラグインがすべき知っていいだろう編集可能なウィジェットのツールバー設定で呼び出すことができます。 ありがとう!