Go to file
Timo Tijhof 370b0bfeb5 Remove redundant VisualEditorDataModule::getGitHeadHash static cache
This method is only called once, in getScript(). There is no need to
indefinitely cache it in the class.

Besides, the GitInfo class already caches it in much the same way in its
own class.

Also move the class instantiation of GitInto into getScript() so that it is
deferred until getScript() is needed – which in turn is only called once and
will naturally gargage collect it as it's now a local variable.

Change-Id: I545baa04e9ff2333fbf2ca7d0473dab0cf9269fd
2015-11-10 01:06:33 +00:00
.jsduck MWCommandHelpDialog: update for core changes 2015-11-04 12:01:45 -06:00
bin Merge "Add a clean-up script for use as a pre-commit hook" 2015-09-14 00:33:31 +00:00
build/tasks build: Enable jscs rule 'requireVarDeclFirst' and make pass 2015-08-19 11:05:01 -07:00
lib Update CommandHelpRegistry calls for breaking change in core 2015-11-05 07:29:44 -08:00
modules Restructure education popup code to work without overriding onSelect 2015-11-09 23:18:01 +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
.gitreview
.jscsrc build: Enable jscs jsDoc rules 'require*Types' and make pass 2015-08-19 11:38:35 -07:00
.jshintignore
.jshintrc jshint: Kill file-level globals and add "moment" to the list 2015-05-06 19:01:27 +00:00
.mailmap AUTHORS: Update for October 2015 2015-10-29 15:02:04 -04: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 ApiVisualEditor: Return the correct notice when user is not allowed to create page 2015-11-05 04:02:42 +01:00
ApiVisualEditorEdit.php Allow switching from wikitext to VE 2015-11-02 20:55:19 +00:00
AUTHORS.txt AUTHORS: Update for October 2015 2015-10-29 15:02:04 -04:00
autodisablePref.php More autodisable script fixes 2015-09-30 22:08:37 +01:00
betafeatures-icon-VisualEditor-ltr.svg
betafeatures-icon-VisualEditor-rtl.svg
composer.json build: Upgrade mediawiki-codesniffer from v0.4.0 to v0.5.0 2015-10-23 08:41:19 -07:00
CONTRIBUTING.md Add a clean-up script for use as a pre-commit hook 2015-07-03 01:57:03 +00:00
extension.json WikiEditor integration: Fix dependencies for switch button 2015-11-07 04:15:14 +00:00
Gemfile [BrowserTest] Screenshot gem version updated to 0.0.7 2015-09-25 21:51:44 +00:00
Gemfile.lock [BrowserTest] Screenshot gem version updated to 0.0.7 2015-09-25 21:51:44 +00:00
Gruntfile.js Make jsonlint ignore more node_modules 2015-10-29 12:26:47 -05: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-10-11 12:21:37 -04:00
phpcs.xml build: Alter settings to force utf-8 and allow .php5/.inc extensions 2015-09-28 23:11:06 +00:00
README.md
VisualEditor.hooks.php Use mw.loader.using instead of weird hacks to load OOjs UI on action=edit 2015-11-03 23:55:17 +00:00
VisualEditor.php Re-do: Empty out PHP entry point 2015-07-02 01:50:57 +00:00
VisualEditorDataModule.php Remove redundant VisualEditorDataModule::getGitHeadHash static cache 2015-11-10 01:06:33 +00:00
VisualEditorDesktopArticleTargetInitModule.php [BREAKING CHANGE] Rename (View|Mobile)PageTarget to (Desktop|Mobile)ArticleTarget 2015-07-29 18:26:36 +01: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.