Go to file
Timo Tijhof 42757a724d Cleanup oldid: Use mw.config for page existence and revision id.
Use mw.config wgCurRevisionId for oldie instead of uri query.
That way it also set on regular views, and as a bonus it the
normalised value (e.g. if on a page with oldid in query but the id
doesn't exist or is somehow invalid, it won't use it).

Centralise page existence logic in JS and rename Target.oldId to
Target.pageRevId (to further indicate that it is always set, not
just on oldId views. To detect an oldId view, do a boolean check
on value from currentUri.query.oldid directly).

In PHP Api, move oldid logic to execute() method instead of
locally from the getHTML call. That way it is always set, avoids
hitting this bug in other methods instead of just getHTML().

Since the mw.Target constructor now retrieves the ID from
mw.config directly, the second argument was removed.

Change-Id: I223235a6ea8b4178c50beeaaedb709b2de7cf0b5
2012-12-03 12:22:30 -08:00
demos Render inline annotations in CE 2012-11-28 11:21:59 -08:00
maintenance Fix path issues with missing files, inconsistent subset in demo, test & mediawiki. 2012-10-16 10:03:26 -04:00
modules Cleanup oldid: Use mw.config for page existence and revision id. 2012-12-03 12:22:30 -08:00
.gitignore Removed Parsoid-related files from .gitignore 2012-08-26 12:20:06 +03:00
.gitreview Set defaultrebase=0 2012-06-20 16:27:40 -07:00
.jshintignore JSHint: Added dotfiles and fixed tons of linting warnings. 2012-07-19 10:01:00 -07:00
.jshintrc inheritClass: Implement inherited 'static' property for classes. 2012-10-09 18:29:41 +00:00
ApiVisualEditor.php Cleanup oldid: Use mw.config for page existence and revision id. 2012-12-03 12:22:30 -08:00
AUTHORS.txt Remove the parser from the VE repo 2012-07-30 13:19:09 -07:00
CODING.md ve.ui.CommandFactory: Initial implementation 2012-10-24 17:48:16 +00:00
LICENSE.txt Changed to use MIT license per agreement with the VisualEditor team 2012-07-19 13:25:45 -07:00
README.txt Remove the parser from the VE repo 2012-07-30 13:19:09 -07:00
VisualEditor.hooks.php (bug 42172) Tag edits made by VE 2012-11-26 21:39:11 +00:00
VisualEditor.i18n.php Localisation updates from http://translatewiki.net. 2012-12-02 20:46:01 +00:00
VisualEditor.php mw.Platform: Only show minor edit option if user has "minoredit" right 2012-12-03 12:21:35 -08:00
VisualEditorMessagesModule.php Design changes for save dialog 2012-08-17 13:48:16 -07:00

VisualEditor provides a visual editor for wiki pages. It is written in
JavaScript and runs in a web browser. 

It uses the Parsoid parser to convert wikitext documents to annotated HTML
which the VisualEditor is able to load, modify and emit back to Parsoid at
which point it is converted back into wikitext.

For more information about these projects, check out the wiki:

	* http://www.mediawiki.org/wiki/VisualEditor
	* http://www.mediawiki.org/wiki/Parsoid