mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
831f2f5cb1
In preparation of pushing the object-management branch, which will need more shared variables (for efficiency) creating a shared closure. To avoid a spegetti of immediately-invoked functions that return functions (like ve.getObjectValues and ve.getObjectKeys). Less duplication of code and faster execution. First I had the closure around it as-is but then I figured it'd be faster to have a local reference to ve (instead of having to go through implied globals for references to other ve.*) So I made it a local variable and then exposed it. That way anything inside referring to each other stays within the same scope. Review with ignore-whitespace for clarity. Change-Id: I415d8635db6d82cf239f0364ccc2d63a61bd5a6d |
||
---|---|---|
demos/ve | ||
modules | ||
.gitignore | ||
.gitreview | ||
.jshintignore | ||
.jshintrc | ||
ApiVisualEditor.php | ||
AUTHORS.txt | ||
LICENSE.txt | ||
README.txt | ||
VisualEditor.hooks.php | ||
VisualEditor.i18n.php | ||
VisualEditor.php | ||
VisualEditorMessagesModule.php |
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 wiki: * http://www.mediawiki.org/wiki/VisualEditor * http://www.mediawiki.org/wiki/Parsoid