mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
94879a98b7
VisualEditor.php: * Make jquery.i18n a dependency of ext.visualEditor.standalone makeStaticLoader.php: * Remove ve.init.platform.addMessages() call with PHP-generated messages * Add fake module for jquery.i18n ** Needed because the module might come from MW core ** Also add special treatment for fallbacks.js and language scripts ve.init.sa.Platform.js: * Remove basic message system, replace with jquery.i18n * Add initialize method that loads messages for current language and fallbacks ve.init.sa.Target.js: * Wait for the platform to initialize before actually doing things * Add .setup() method to allow callers to short-circuit this process ** This is convenient for callers of ve.init.sa.Target in the test suite ve.ce.test.js: * Use existing ve.test.utils function for creating a surface ve.test.utils.js: * Call .setup() on the target so we can get a surface synchronously ve.init.Platform.test.js: * Make these tests async, wait for the platform to initialize * Allow for missing messages to be output either as <foo> (MW) or foo (jquery.i18n) * Get rid of message clearing code, namespace test messages instead Change-Id: Iac7dfd327eadf9b503a61510574d35d748faac92 |
||
---|---|---|
.docs | ||
bin | ||
demos | ||
maintenance | ||
modules | ||
.csslintignore | ||
.csslintrc | ||
.gitignore | ||
.gitreview | ||
.jscs.json | ||
.jshintignore | ||
.jshintrc | ||
ApiVisualEditor.php | ||
ApiVisualEditorEdit.php | ||
AUTHORS.txt | ||
betafeatures-icon-VisualEditor-formulae-ltr.svg | ||
betafeatures-icon-VisualEditor-formulae-rtl.svg | ||
betafeatures-icon-VisualEditor-ltr.svg | ||
betafeatures-icon-VisualEditor-rtl.svg | ||
CONTRIBUTING.md | ||
Gruntfile.js | ||
LICENSE.txt | ||
package.json | ||
README.md | ||
VisualEditor.hooks.php | ||
VisualEditor.i18n.php | ||
VisualEditor.php | ||
VisualEditorDataModule.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 CODING.md. Patch submissions are reviewed and managed with Gerrit. There is also API documentation available for the VisualEditor.