Go to file
Chunliang Lyu 4774fbdf5c Fix TypeError in MWTocWidget.initFromMetaList
If a page contains __NOTOC__ magic word, it would break the VisualEditor
with "Uncaught (in promise) TypeError: Right-hand side of 'instanceof' is not
an object at VeUiMWTocWidget.ve.ui.MWTocWidget.initFromMetaList".

The issue seems to be that we removed ve.dm.MWTOCForceMetaItem and
ve.dm.MWTOCDisableMetaItem in commit 57a06a6e75,
but the code in initFromMetaList still refers to them.

Change-Id: I857cddcc7d4aa73375357ef922591ed94d760166
2019-02-09 19:31:27 +01:00
.jsduck Update VE core submodule to master (4398bb868) 2019-01-11 08:16:28 -08:00
bin updateSubmodule: Put list in topo (merged), not written, order 2018-05-10 08:51:37 -07:00
build Fix uncaught jQuery linting errors 2019-01-18 21:03:38 +00:00
i18n Localisation updates from https://translatewiki.net. 2019-02-05 22:38:02 +01:00
images Merge "Re-crush beta feature SVG screenshots" 2018-02-08 12:18:28 +00:00
includes build: Updating mediawiki/mediawiki-codesniffer to 24.0.0 2019-02-06 18:33:13 +00:00
lib Update VE core submodule to master (5838dce23) 2019-02-05 10:13:53 -08:00
maintenance doc: Bump copyright year for 2019 2019-01-01 13:24:23 +00:00
modules Fix TypeError in MWTocWidget.initFromMetaList 2019-02-09 19:31:27 +01:00
screenshots Add screenshots grunt task for taking documentation screenshots 2016-06-27 12:19:35 +01:00
.eslintrc.json build: Set "root": true, in .eslintrc.json 2018-12-17 18:59:43 -08:00
.gitignore Add .idea to .gitignore 2017-01-27 13:16:58 +01:00
.gitmodules Use submodule for VisualEditor core 2013-12-20 09:18:41 +00:00
.gitreview .gitreview: swapping defaultbranch for track 2016-10-25 10:58:48 +02:00
.mailmap Update AUTHORS.txt for the last couple of years' work 2018-01-03 11:51:37 -08:00
.phpcs.xml build: Updating mediawiki/mediawiki-codesniffer to 24.0.0 2019-02-06 18:33:13 +00:00
.rubocop.yml build: Bump Ruby cruft to avoid security warnings for old rubocop 2017-11-28 12:09:20 -08:00
.rubocop_todo.yml build: Bump Ruby cruft to avoid security warnings for old rubocop 2017-11-28 12:09:20 -08:00
.stylelintrc.json stylelint: Enforce class name pattern 2019-01-13 15:14:53 +00:00
AUTHORS.txt Remove EasyDeflate libs, upstreamed to core 2018-07-26 18:18:52 +00:00
composer.json build: Updating mediawiki/mediawiki-codesniffer to 24.0.0 2019-02-06 18:33:13 +00:00
CONTRIBUTING.md Update link to contributing guidelines 2017-08-21 18:22:35 -04:00
extension.json DesktopArticleTarget: Make the progress bar into a reusable widget 2019-02-06 22:20:37 +01:00
Gemfile build: Use commons_upload v1.2.1 Ruby gem for language screenshots 2018-03-15 17:32:47 +01:00
Gemfile.lock build: Use commons_upload v1.2.1 Ruby gem for language screenshots 2018-03-15 17:32:47 +01:00
Gruntfile.js build: Don't check for code typos in the i18n files 2019-01-30 17:20:07 -08:00
jsduck.json Update VE core submodule to master (4398bb868) 2019-01-11 08:16:28 -08:00
LICENSE.txt doc: Bump copyright year for 2019 2019-01-01 13:24:23 +00:00
package.json build: Update eslint-config-wikimedia to 0.10.1 2019-02-02 11:02:27 -08:00
Rakefile build: npm/rake entry point for screenshots upload 2018-03-07 23:23:30 +01:00
README.md README: Add devDependencies badge 2014-09-16 13:39:31 -07:00
VisualEditor.i18n.alias.php doc: Bump copyright year for 2019 2019-01-01 13:24:23 +00:00
VisualEditor.php doc: Bump copyright year for 2019 2019-01-01 13:24:23 +00: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.