Last modified: 2014-10-14 12:07:04 UTC
When we edit using the visual editor, we still get mw.config.get( 'wgAction' ) === 'view' instead of mw.config.get( 'wgAction' ) === 'edit' See also http://lists.wikimedia.org/pipermail/wikitech-l/2013-July/070603.html which quotes http://lists.wikimedia.org/pipermail/wikitech-l/2013-July/070601.html
For the sake of solving bug 51421, maybe it could use "action=vedit"?
Another reason why the current method is not ideal, taken from https://www.mediawiki.org/wiki/Thread:VisualEditor/Feedback/Categories/reply_(8) >Lots of template transclusions also offer a specific edit link. >Their action uses only the wiki code editor. If both actions > "edit" and "editVE" were merged into a single one (with a simple > switch to show either the editable preview or the wiki code) it > would be simpler. And the "Show preview" button could disappear > below the wiki editor (it would just remain a "Save page" button), > but the "Save" button could also show the actual rendering > without the limitations of the editable preview.
See also bug 53746 comment 3.
(In reply to Helder from comment #1) > For the sake of solving bug 51421, maybe it could use "action=vedit"? +1