MediaWiki:MoveEdittools.js: Difference between revisions
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
**/ | **/ | ||
mw.hook( 'wikipage.content' ).add( ( $content ) => { | mw.hook( 'wikipage.content' ).add( ( $content ) => { | ||
const $editForm = $content.find( '.editform' ); | |||
if ( $editForm ) { | |||
console.log("loading"); | |||
const $editTools = $content.find( '.mw-editTools' ); // DIV | |||
const $editorUi = $content.find('.wikiEditor-ui'); // DIV | |||
$editForm.insertBefore($editTools, $editorUi); | |||
} | } | ||
// Do things with $target | |||
}); | }); | ||