mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 16:20:52 +00:00
d16fef546a
* Only pass the oldid to the API from #load if we restoring from oldid in the url. Otherwise load the latest version. * Setting 'restoring' from mw.Target instead of mw.ViewPageTarget so that we don't rely on mw.ViewPageTarget in mw.Target#load. * Fix the API to not require 'oldid' to be passed. * Fix the API to actually return the 'newrevid' property. It was doing a no-op on a $result that is never used due to the same variable being overwritten with the result of parseWikitext. * Moved updating of wgCurRevisionId to mw.ViewPageTarget as it belongs there (possible future inline editors probably act on a different page than the main one). Also made it only update if it isn't undefined, so that a null edit doesn't result in wgCurRevisionId being unset. Bug: 49943 Bug: 50441 Change-Id: I221e5038f95eadf6d87013e80f12394f0376a293 |
||
---|---|---|
.docs | ||
demos | ||
maintenance | ||
modules | ||
.csslintrc | ||
.gitignore | ||
.gitreview | ||
.jshintignore | ||
.jshintrc | ||
ApiVisualEditor.php | ||
AUTHORS.txt | ||
CODING.md | ||
Gruntfile.js | ||
LICENSE.txt | ||
package.json | ||
README.txt | ||
VisualEditor.hooks.php | ||
VisualEditor.i18n.php | ||
VisualEditor.php | ||
VisualEditorMessagesModule.php |
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