Go to file
Bartosz Dziewoński 756572ed8a ve.init.mw.ArticleTarget: Use errorformat=html when saving
When saving fails for a reason we don't handle explicitly, the error
message will have HTML formatting and will respect any on-wiki
overridden messages, rather than being plain text generic message.

Extensions providing custom SaveErrorHandlers may need to be updated.
The only one in Gerrit that requires a fix is TitleBlacklist:
Ibeae79c95557a7af699716c9d921f34c310bee6d.

* Remove handling for errors returned in .visualeditoredit.edit.info
  rather than .errors (.error in old format). AFAIK this is only used
  by some extensions, it is probably incorrect to do (T229539) and all
  extensions I know of that do this (AbuseFilter, SpamBlacklist,
  ConfirmEdit) have custom SaveErrorHandlers.

* Remove custom error messages for 'readonly' (identical to API
  response) and for 'hookaborted' (very unhelpful and there is a
  chance that the API response is better, if the extension causing
  this error generates any error message).

* Add a silly shim for MobileFrontend integration, because we allow it
  to handle error responses, and it expects them in the old format.
  This is probably subtly wrong in many ways, but MobileFrontend code
  only uses this for logging, so it shouldn't explode. In the future
  we will hopefully change it to use errorformat=html (T228897#5366960).

Bug: T229532
Change-Id: I3b9c4fefc0869ef7999c21cef754434febd852ec
2019-08-22 00:37:15 +00:00
.jsduck Update VE core submodule to 962335a40293cf4b1314c0236788f35f080ae877 2019-07-23 22:13:27 +00:00
.phan Add phan 2019-05-31 14:48:22 +00:00
bin updateSubmodule: Put list in topo (merged), not written, order 2018-05-10 08:51:37 -07:00
build Fix 'paramter' typo in code and add to typos list, now covering PHP 2019-08-20 12:10:04 +01:00
i18n ve.init.mw.ArticleTarget: Use errorformat=html when saving 2019-08-22 00:37:15 +00:00
images Merge "Re-crush beta feature SVG screenshots" 2018-02-08 12:18:28 +00:00
includes Fix 'paramter' typo in code and add to typos list, now covering PHP 2019-08-20 12:10:04 +01:00
lib Update VE core submodule to master (3a7bad9c0) 2019-08-21 14:33:14 +01:00
maintenance Don't use Maintenance::$mDescription directly 2019-06-14 17:52:36 -07:00
modules ve.init.mw.ArticleTarget: Use errorformat=html when saving 2019-08-22 00:37:15 +00:00
screenshots
.eslintrc.json build: Upgrade eslint-config-wikimedia from 0.12.0 to 0.13.1 2019-08-02 09:51:07 -07:00
.gitignore eslint: Enable caching 2019-02-19 18:53:11 +00:00
.gitmodules .gitmodules: Update gerrit URI syntax, deprecated ages ago, now unsupported 2019-03-19 16:49:03 +00:00
.gitreview
.mailmap
.phpcs.xml .phpcs.xml: Drop unnecessary exclusions 2019-04-05 17:43:18 -07:00
.rubocop.yml
.rubocop_todo.yml
.stylelintrc.json stylelint: Enforce class name pattern 2019-01-13 15:14:53 +00:00
AUTHORS.txt Remove EasyDeflate libs, upstreamed to core 2018-07-26 18:18:52 +00:00
composer.json build: Updating dependencies 2019-07-16 04:47:13 +00:00
CONTRIBUTING.md Update link to contributing guidelines 2017-08-21 18:22:35 -04:00
extension.json ve.init.mw.ArticleTarget: Use errorformat=html when saving 2019-08-22 00:37:15 +00:00
Gemfile build: Use commons_upload v1.2.1 Ruby gem for language screenshots 2018-03-15 17:32:47 +01:00
Gemfile.lock build: Use commons_upload v1.2.1 Ruby gem for language screenshots 2018-03-15 17:32:47 +01:00
Gruntfile.js Fix 'paramter' typo in code and add to typos list, now covering PHP 2019-08-20 12:10:04 +01:00
jsduck.json Update VE core submodule to master (06f1ebb8e) 2019-05-29 14:49:53 -07:00
LICENSE.txt doc: Bump copyright year for 2019 2019-01-01 13:24:23 +00:00
package-lock.json build: Upgrade eslint-config-wikimedia from 0.12.0 to 0.13.1 2019-08-02 09:51:07 -07:00
package.json build: Upgrade eslint-config-wikimedia from 0.12.0 to 0.13.1 2019-08-02 09:51:07 -07:00
Rakefile build: npm/rake entry point for screenshots upload 2018-03-07 23:23:30 +01:00
README.md
VisualEditor.i18n.alias.php doc: Bump copyright year for 2019 2019-01-01 13:24:23 +00:00
VisualEditor.php doc: Bump copyright year for 2019 2019-01-01 13:24:23 +00: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.