Benutzer:John Vandenberg/switch editor

aus Wikipedia, der freien Enzyklopädie
Wechseln zu: Navigation, Suche

switch editor is a mod for 'Visual Editor' (VE) that allows the user to begin editing in the VE, and switch back to the Source Editor (SE) with the modified wikitext.

This allows a contributor to work around the many bugs in the VE that cause spurious wikitext to be injected into the article. Review your changes in VE, and if the diff contains errors simply switch to the Source Editor and remove the junk that the VE added.

The code is at User:John Vandenberg/switch editor.js, and is tested in Firefox 22.0 and Google Chrome Version 28.0.1500.71

If you want the 'edit source' link to switch, or want a bookmarklet, use the code at en:User:John Vandenberg/switch editor 2.js .

Installation[Bearbeiten | Quelltext bearbeiten]

In special:preferences, go to Appearance, click on your skin JavaScript (e.g. special:mypage/vector.js) or special:mypage/common.js, and add:

 mw.loader.load('// Vandenberg/switch editor.js&action=raw&ctype=text/javascript');

Usage[Bearbeiten | Quelltext bearbeiten]

Switch editor de.png

On the save dialog, click the checkbox beside 'Review your changes' (as pictured above), followed by the 'Review your changes' button.