mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 08:34:54 +00:00
dad06ef495
It's good that we're not trying to close the save dialog if it's not open, but we still need to release our reference to it in that case, otherwise trying to open the save dialog in a new incarnation of the editor will fail. If you opened VE, opened the save dialog, closed it, went back to read mode, opened VE again, and tried to open the save dialog again, it would fail because it tried to open the cached reference to the previous editor's save dialog. Bonus: prevent JS errors in this case by only attaching an onClose handler if the dialog actually opened successfully. If opening the dialog failed, the callback parameter isn't a promise but an OO.ui.Error, and calling .always() causes a JS error. Change-Id: I62d6d3e7cd3df2c29a0c99e2e23bf1aac5187a12 |
||
---|---|---|
.docs | ||
bin | ||
build/tasks | ||
lib | ||
modules | ||
.csslintrc | ||
.gitignore | ||
.gitmodules | ||
.gitreview | ||
.jscsrc | ||
.jshintignore | ||
.jshintrc | ||
.rubocop.yml | ||
.rubocop_todo.yml | ||
ApiVisualEditor.php | ||
ApiVisualEditorEdit.php | ||
AUTHORS.txt | ||
betafeatures-icon-VisualEditor-language-ltr.svg | ||
betafeatures-icon-VisualEditor-language-rtl.svg | ||
betafeatures-icon-VisualEditor-ltr.svg | ||
betafeatures-icon-VisualEditor-rtl.svg | ||
CONTRIBUTING.md | ||
Gemfile | ||
Gemfile.lock | ||
Gruntfile.js | ||
LICENSE.txt | ||
package.json | ||
README.md | ||
VisualEditor.hooks.php | ||
VisualEditor.php | ||
VisualEditorDataModule.php | ||
VisualEditorViewPageTargetInitModule.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.