Go to file
Timo Tijhof 2e050ff498 VisualEditorDataModule: Use definition summary instead of time tracking
The current approach matched historical RL conventions, but was quite
fragile. It used memcached to track hashes of all (or most?) factors
that influence the generated script.

Now that RL uses version hashes instead of timestamp, just hash the
script directly. Currently ResourceLoader falls back to hashing
the generated timestamp. Let's bypass this.

As a bonus, this also gets rid of the getMessages() hack which was
causing all messages to load twice and the module to be almost
twice a big as it could be.

It loaded messages once as part of getScript, via ve.init.platform.addMessages.
And a second time via getMessages() for which mw.loader calls mw.messages.set.

Bug: T94074
Change-Id: Ib8e688bf3a9c151cbb18016e10230c3a4bab46b8
2015-06-08 18:27:27 +00:00
.jsduck Account for MWTitleInputWidget having been moved into MW core 2015-06-01 17:24:52 -07:00
bin Merge "Follow-up a4bbe98cd: Kill emptiness hack check in bin/updateSubmodule.sh too" 2015-04-29 00:58:51 +00:00
build/tasks Use submodule for VisualEditor core 2013-12-20 09:18:41 +00:00
lib Update VE core submodule to master (f821c6e) 2015-06-08 08:28:52 -07:00
modules Merge "Empty all inputs on link inspector teardown" 2015-06-08 14:37:26 +00:00
.csslintrc Transform the search widget to show image details 2015-01-16 13:22:54 +00:00
.gitignore Add a couple of patterns to .gitignore for emacs 2015-05-13 19:11:05 -04:00
.gitmodules Use submodule for VisualEditor core 2013-12-20 09:18:41 +00:00
.gitreview Set defaultrebase=0 2012-06-20 16:27:40 -07:00
.jscsrc build: Enforce disallowMixedSpacesAndTabs jscs rule 2015-03-07 16:49:30 +00:00
.jshintignore Move libraries to the lib/ directory 2013-12-19 23:02:52 +01:00
.jshintrc jshint: Kill file-level globals and add "moment" to the list 2015-05-06 19:01:27 +00:00
.mailmap mailmap: Add an additional e-mail for Bartosz per request 2015-05-31 13:04:29 -07:00
.rubocop.yml [BrowserTest] RuboCop should not complain about number of lines in a method 2014-11-21 16:57:27 +00:00
.rubocop_todo.yml [BrowserTest] Remove outdated offenses from .rubocop_todo.yml 2015-02-20 13:39:18 +02:00
ApiVisualEditor.php api: Expand helppage url before passing to 'newarticletext' 2015-05-06 21:01:59 +01:00
ApiVisualEditorEdit.php Use more appropriate RecentChange_save hook for tagging 2015-05-27 13:28:01 -07:00
AUTHORS.txt Update AUTHORS.txt, $wgExtensionCredits and .mailmap based on git shortlog 2015-03-26 11:05:02 -07:00
betafeatures-icon-VisualEditor-ltr.svg Run node-svgo to crush all SVGs whilst retaining readibility 2014-07-01 16:58:05 -07:00
betafeatures-icon-VisualEditor-rtl.svg Run node-svgo to crush all SVGs whilst retaining readibility 2014-07-01 16:58:05 -07:00
composer.json Update mediawiki/codesniffer to 0.2.0 2015-06-02 17:00:09 -07:00
CONTRIBUTING.md Fix dead links in README.md and CONTRIBUTING.md 2014-03-10 18:26:30 +01:00
extension.json Merge "Account for MWTitleInputWidget having been moved into MW core" 2015-06-04 23:11:01 +00:00
Gemfile [BrowserTest] Update the screenshot gem version 2015-03-19 15:21:00 +02:00
Gemfile.lock [BrowserTest] Update the screenshot gem version 2015-03-19 15:21:00 +02:00
Gruntfile.js build: Provide a grunt fix task to auto-fix jscs failures 2015-06-03 16:44:30 -07:00
jsduck.json build: Move pre/post 'doc' task into package.json 2015-04-06 17:18:29 +01:00
LICENSE.txt build: Bump copyright notices to 2015 2015-01-12 20:34:19 -08:00
package.json build: Updating development dependencies 2015-06-06 00:11:02 +00:00
README.md README: Add devDependencies badge 2014-09-16 13:39:31 -07:00
VisualEditor.hooks.php Account for MWTitleInputWidget having been moved into MW core 2015-06-01 17:24:52 -07:00
VisualEditor.php Account for MWTitleInputWidget having been moved into MW core 2015-06-01 17:24:52 -07:00
VisualEditorDataModule.php VisualEditorDataModule: Use definition summary instead of time tracking 2015-06-08 18:27:27 +00:00
VisualEditorViewPageTargetInitModule.php build: Bump copyright notices to 2015 2015-01-12 20:34:19 -08: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.