mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-01 01:16:30 +00:00
756572ed8a
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 |
||
---|---|---|
.jsduck | ||
.phan | ||
bin | ||
build | ||
i18n | ||
images | ||
includes | ||
lib | ||
maintenance | ||
modules | ||
screenshots | ||
.eslintrc.json | ||
.gitignore | ||
.gitmodules | ||
.gitreview | ||
.mailmap | ||
.phpcs.xml | ||
.rubocop.yml | ||
.rubocop_todo.yml | ||
.stylelintrc.json | ||
AUTHORS.txt | ||
composer.json | ||
CONTRIBUTING.md | ||
extension.json | ||
Gemfile | ||
Gemfile.lock | ||
Gruntfile.js | ||
jsduck.json | ||
LICENSE.txt | ||
package-lock.json | ||
package.json | ||
Rakefile | ||
README.md | ||
VisualEditor.i18n.alias.php | ||
VisualEditor.php |
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.