I have tried to add justify plugin to be able to align text right, left or centre. But after following the instructions in the documentation (http://apostrophecms.org/docs/tutorials/howtos/ckeditor.html), I wonder if the plugin should be located in a specific folder (mine is at public/modules/apostrophe-areas/js/ckeditorPlugins/justify/), as it disappears when the site is loaded, but if I include it in some other folder such as public/plugins/justify still doesn’t work.
This is my code just in case: (located at lib/modules/apostrophe-areas/public/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'); }; } });
Also, it would be nice to know how the plugin should be called at the Toolbar settings for editable widgets. Thanks!