Go to file
Roan Kattouw 6322be2e07 Handle API errors when refetching the edit token
This can happen when the user gets logged out on a private wiki.
We get a badtoken error, so we try to refetch the token, which
itself returns an error. Token refetches didn't have error handling
at all and got the save dialog stuck in the pending state.

We can't offer the user to proceed with a different identity here,
because we encountered an error while trying to figure out what their
current identity is. The best we can do is encourage them to
log back in in a different tab.

Bug: T128934
Change-Id: I17d4452f688ec22631dbd12af223731635004d66
2016-03-04 18:06:33 -08:00
.jsduck Update VE core submodule to master (0371bbe) 2016-02-26 12:26:56 -08:00
bin Merge "Add a clean-up script for use as a pre-commit hook" 2015-09-14 00:33:31 +00:00
build Fix typos 2015-12-09 16:47:13 +00:00
lib Update VE core submodule to master (6b85afc) 2016-03-01 16:35:43 -08:00
modules Handle API errors when refetching the edit token 2016-03-04 18:06:33 -08:00
.csslintrc Transform the search widget to show image details 2015-01-16 13:22:54 +00:00
.gitignore Add a couple of patterns to .gitignore for emacs 2015-05-13 19:11:05 -04:00
.gitmodules
.gitreview
.jscsrc build: Enable jscs jsDoc rules 'require*Types' and make pass 2015-08-19 11:38:35 -07:00
.jshintignore
.jshintrc Update VE core submodule to master (0371bbe) 2016-02-26 12:26:56 -08:00
.mailmap .mailmap: Add some extra addresses and change default for rmoen 2015-11-30 12:56:01 -08:00
.rubocop.yml [BrowserTest] Fix ve.init is undefined error messages in Selenium tests 2016-02-18 15:42:05 +01:00
.rubocop_todo.yml [BrowserTest] Fix ve.init is undefined error messages in Selenium tests 2016-02-18 15:42:05 +01:00
ApiVisualEditor.php Change Accept header a bit 2016-03-02 15:37:37 +00:00
ApiVisualEditorEdit.php build: Update mediawiki-codesniffer to 0.6.0, add "composer fix" 2016-02-17 08:18:02 -08:00
AUTHORS.txt AUTHORS.txt: Be more strict about 'principal' authors and update addresses 2015-11-30 12:56:02 -08:00
autodisablePref.php build: Update mediawiki-codesniffer to 0.6.0, add "composer fix" 2016-02-17 08:18:02 -08:00
betafeatures-icon-VisualEditor-ltr.svg Fix the beta feature image 2015-11-30 15:09:34 -08:00
betafeatures-icon-VisualEditor-rtl.svg Fix the beta feature image 2015-11-30 15:09:34 -08:00
composer.json build: Update mediawiki-codesniffer to 0.6.0, add "composer fix" 2016-02-17 08:18:02 -08:00
CONTRIBUTING.md Add a clean-up script for use as a pre-commit hook 2015-07-03 01:57:03 +00:00
extension.json Handle API errors when refetching the edit token 2016-03-04 18:06:33 -08:00
Gemfile Update mediawiki_selenium Ruby gem to version 1.6.5 2016-02-03 18:17:12 +01:00
Gemfile.lock Update mediawiki_selenium Ruby gem to version 1.6.5 2016-02-03 18:17:12 +01:00
Gruntfile.js build: Add grunt-tyops 2015-12-09 00:53:34 +00:00
jsduck.json Update VE core submodule to master (0371bbe) 2016-02-26 12:26:56 -08:00
LICENSE.txt build: Bump file copyright notices for 2016 2016-01-03 14:57:25 -08:00
package.json build: Bump various devDeps to latest and make pass 2016-02-07 19:41:21 -08:00
phpcs.xml build: Alter settings to force utf-8 and allow .php5/.inc extensions 2015-09-28 23:11:06 +00:00
Rakefile Added Rakefile 2015-11-10 10:24:39 +00:00
README.md
VisualEditor.hooks.php Give a useful message in the temporary blank edit screen 2016-02-27 21:42:10 +00:00
VisualEditor.php build: Update mediawiki-codesniffer to 0.6.0, add "composer fix" 2016-02-17 08:18:02 -08:00
VisualEditorDataModule.php build: Update mediawiki-codesniffer to 0.6.0, add "composer fix" 2016-02-17 08:18:02 -08:00
VisualEditorDesktopArticleTargetInitModule.php build: Update mediawiki-codesniffer to 0.6.0, add "composer fix" 2016-02-17 08:18:02 -08:00

devDependency Status

VisualEditor

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 VisualEditor and Parsoid pages on mediawiki.

Developing and installing

For information on installing VisualEditor on a local wiki, please see https://www.mediawiki.org/wiki/Extension:VisualEditor

For information about running tests and contributing code to VisualEditor, see CONTRIBUTING.md. Patch submissions are reviewed and managed with Gerrit. There is also API documentation available for the VisualEditor.