Index: trunk/extensions/MeanEditor/MeanEditor.i18n.php |
— | — | @@ -1,6 +1,7 @@ |
2 | 2 | <?php |
3 | 3 | $messages = array(); |
4 | 4 | $messages['en'] = array( |
| 5 | + 'descriptionmsg' => 'The mean, the safe and the ugly visual editor for non-technical users. Based on WYMeditor and jQuery.', |
5 | 6 | 'prefer_traditonal_editor' => 'Do not use the visual editor', |
6 | 7 | 'meaneditor_desc' => 'The mean, the safe and the ugly visual editor for non-technical users. Based on WYMeditor and jQuery.', |
7 | 8 | 'no_recent_images' => 'No recently uploaded images.', |
Index: trunk/extensions/MeanEditor/MeanEditorEditPage.body.php |
— | — | @@ -171,9 +171,6 @@ |
172 | 172 | wfProfileOut( __METHOD__ ); |
173 | 173 | } |
174 | 174 | |
175 | | - |
176 | | - |
177 | | - |
178 | 175 | /** |
179 | 176 | * We need to read the checkbox and the hidden value to know if the |
180 | 177 | * visual editor was used or not |
— | — | @@ -250,7 +247,6 @@ |
251 | 248 | $wgOut->addHTML( "</div><!-- editButtons -->\n</div><!-- editOptions -->\n" ); |
252 | 249 | } |
253 | 250 | |
254 | | - |
255 | 251 | # We need to add the class 'wymupdate' to all buttons |
256 | 252 | public function getEditButtons(&$tabindex) { |
257 | 253 | $buttons = array(); |
— | — | @@ -297,5 +293,4 @@ |
298 | 294 | return $buttons; |
299 | 295 | } |
300 | 296 | |
301 | | - |
302 | 297 | } |
Index: trunk/extensions/MeanEditor/MeanEditor.php |
— | — | @@ -15,12 +15,18 @@ |
16 | 16 | $wgExtensionCredits['other'][] = array( |
17 | 17 | 'name' => 'MeanEditor', |
18 | 18 | 'author' => 'Jacopo Corbetta and Alessandro Pignotti for Antonio Gulli', |
19 | | - 'description' => 'The mean, the safe and the ugly visual editor for non-technical users. Based on WYMeditor and jQuery.', |
20 | 19 | 'descriptionmsg' => 'meaneditor_desc', |
21 | 20 | 'url' => 'http://www.mediawiki.org/wiki/Extension:MeanEditor', |
22 | 21 | 'version' => '0.5.5' |
23 | 22 | ); |
24 | 23 | |
| 24 | +$wgHooks['EditPage::wiki2html'][] = 'meaneditor_wiki2html'; |
| 25 | +$wgHooks['EditPage::html2wiki'][] = 'meaneditor_html2wiki'; |
| 26 | +$wgHooks['EditPage::showBox'][] = 'meaneditor_showBox'; |
| 27 | +$wgHooks['CustomEditor'][] = 'meaneditor_customeditor'; |
| 28 | +$wgHooks['EditPageBeforeEditChecks'][] = 'meaneditor_checkboxes'; |
| 29 | +$wgHooks['EditPageBeforeEditToolbar'][] = 'meaneditor_disabletoolbar'; |
| 30 | + |
25 | 31 | function substitute_hashed_img_urls($text) |
26 | 32 | { |
27 | 33 | while (preg_match('/\[\[Image:(.*?)\]\]/', $text, $matches)) { |
— | — | @@ -515,10 +521,3 @@ |
516 | 522 | $toolbar = ''; |
517 | 523 | return false; |
518 | 524 | } |
519 | | - |
520 | | -$wgHooks['EditPage::wiki2html'][] = 'meaneditor_wiki2html'; |
521 | | -$wgHooks['EditPage::html2wiki'][] = 'meaneditor_html2wiki'; |
522 | | -$wgHooks['EditPage::showBox'][] = 'meaneditor_showBox'; |
523 | | -$wgHooks['CustomEditor'][] = 'meaneditor_customeditor'; |
524 | | -$wgHooks['EditPageBeforeEditChecks'][] = 'meaneditor_checkboxes'; |
525 | | -$wgHooks['EditPageBeforeEditToolbar'][] = 'meaneditor_disabletoolbar'; |