User:John Vandenberg/switch editor

From Wikipedia, the free encyclopedia

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 in the history of User:John Vandenberg/switch editor.js, and is tested in Firefox 22.0 and Google Chrome Version 28.0.1500.71

The code has been removed as the core VE product now contains this functionality.

If you want the 'edit source' link to switch, or want a bookmarklet, use the code at User:John Vandenberg/switch editor 2.js . It hasnt been tested since the VE product changes that added editing switching natively.

Installation[edit]

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

importScript('User:John Vandenberg/switch editor 2.js');

Usage[edit]

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