Index: trunk/extensions/SemanticForms/includes/forminputs/SF_TextAreaWithAutocompleteInput.php |
— | — | @@ -64,7 +64,7 @@ |
65 | 65 | } |
66 | 66 | |
67 | 67 | $jstext = <<<JAVASCRIPT |
68 | | -jQuery(function(){ jQuery('#$input_id').SemanticForms_registerInputInit( ext.wikieditor.init, null ); }); |
| 68 | +mediaWiki.loader.using( 'ext.semanticforms.wikieditor', function(){ jQuery('#$input_id').SemanticForms_registerInputInit( ext.wikieditor.init, null ); }); |
69 | 69 | JAVASCRIPT; |
70 | 70 | |
71 | 71 | // write JS code directly to the page's code |
Index: trunk/extensions/SemanticForms/skins/SF_wikieditor.css |
— | — | @@ -0,0 +1,9 @@ |
| 2 | +/** |
| 3 | +* Style sheet for the wikieditor |
| 4 | +*/ |
| 5 | + |
| 6 | +textarea.wikieditor { |
| 7 | + border: none; |
| 8 | + padding: 0; |
| 9 | + line-height: 1.5em; |
| 10 | +} |
\ No newline at end of file |
Property changes on: trunk/extensions/SemanticForms/skins/SF_wikieditor.css |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 11 | + native |
Index: trunk/extensions/SemanticForms/specials/SF_FormEdit.php |
— | — | @@ -277,6 +277,11 @@ |
278 | 278 | |
279 | 279 | if ( $save_page ) { |
280 | 280 | |
| 281 | + $permErrors = $target_title->getUserPermissionsErrors( 'edit', $wgUser ); |
| 282 | + if ( $permErrors ) { |
| 283 | + // just return the first error and let them fix it one by one |
| 284 | + return array_shift( $permErrors ); |
| 285 | + } |
281 | 286 | // Set up all the variables for the |
282 | 287 | // page save. |
283 | 288 | $data = array( |