Skip to content

Commit

Permalink
feature(ckeditor): added js plugin hook to ckeditor config
Browse files Browse the repository at this point in the history
fixes Elgg#7131
  • Loading branch information
jdalsem committed Feb 11, 2015
1 parent 306fe6c commit 65e1cca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mod/ckeditor/views/default/js/elgg/ckeditor/config.js
Expand Up @@ -2,7 +2,7 @@ define(function(require) {
var elgg = require('elgg');
var $ = require('jquery');

return {
var config = {
toolbar: [['Bold', 'Italic', 'Underline', 'RemoveFormat'], ['Strike', 'NumberedList', 'BulletedList', 'Undo', 'Redo', 'Link', 'Unlink', 'Image', 'Blockquote', 'Paste', 'PasteFromWord', 'Maximize']],
removeButtons: 'Subscript,Superscript', // To have Underline back
allowedContent: true,
Expand All @@ -19,4 +19,8 @@ define(function(require) {
removeDialogTabs: 'image:advanced;image:Link;link:advanced;link:target',
autoGrow_maxHeight: $(window).height() - 100
};

config = elgg.trigger_hook('config', 'ckeditor', config, config);

return config;
});

0 comments on commit 65e1cca

Please sign in to comment.