diff --git a/CodeEditor.php b/CodeEditor.php index aade0248..06dae9d8 100644 --- a/CodeEditor.php +++ b/CodeEditor.php @@ -92,7 +92,6 @@ $wgResourceModules['ext.codeEditor.geshi'] = array( ), 'messages' => array( 'editsection', - 'editsection-brackets', 'savearticle' ) ) + $tpl; diff --git a/modules/ext.codeEditor.geshi.js b/modules/ext.codeEditor.geshi.js index 0d656165..34d6bc6f 100644 --- a/modules/ext.codeEditor.geshi.js +++ b/modules/ext.codeEditor.geshi.js @@ -17,10 +17,10 @@ $(function() { event.preventDefault(); }); var $edit = $('') - .css('float', 'right') - .append('[') + .addClass('mw-editsection') + .append('[') .append($link) - .append(']'); // @fixme use the editsection-brackets msg + .append(']'); $div.prepend($edit); }; var openEditor = function($div) {