Go to file
Thiemo Kreuz 8831887e3c Update template search fallback to max out at 10
Before, the fallback algorithm was somewhat adaptive, trying harder and
harder the fewer CirrusSearch results have been found. This updated
algorithm guarantees that 10 results are shown.

Warning: You might see only 9 results. The reason is a bogus, unrelated
behavior in the mw.widgets.TitleWidget in core that's used as a base
class here. There is a "showMissing" option that's apparently enabled
by default, and prepends a non-existing title from the main namespace,
ignoring the "namespace" option. This extra result from the wrong
namespace is later dropped by the very same widget.

This code here sees 10 results before the bogus one is dropped.
Disabling "showMissing" causes other issues. We would need a series (?)
of custom hacks to work around all this, but this seems inappropriate.
Let's live with 9 for the moment.

Bug: T303524
Change-Id: I2c577c9ef2752b6c6cd360f4023e151e9272fcd5
2022-04-21 09:25:00 +00:00
.jsduck Update VE core submodule to master (41653c74a) 2022-04-07 00:01:09 +02:00
.phan Zero-configuration VisualEditor + PHP for MediaWiki LTS 2020-07-13 18:39:08 +00:00
.vscode selenium: The first test 2021-11-09 16:11:22 +01:00
bin updateSubmodule: Put list in topo (merged), not written, order 2018-05-10 08:51:37 -07:00
build eslint: Lint root files with server rules 2022-03-17 23:39:53 +00:00
i18n Localisation updates from https://translatewiki.net. 2022-04-20 08:19:25 +02:00
images Manually optimize BetaFeatures .svg files 2021-09-02 11:38:14 +02:00
includes ApiVisualEditor: Fix 'stash' param validation (it's a boolean) 2022-04-19 21:53:03 +02:00
lib Update VE core submodule to master (6609cde00) 2022-04-21 02:10:15 +02:00
maintenance Raise PHP coding standards in this codebase a bit 2021-11-08 13:34:29 +01:00
modules Update template search fallback to max out at 10 2022-04-21 09:25:00 +00:00
screenshots
tests eslint: Lint all files except those in .eslintignore 2022-04-13 15:44:49 +01:00
.eslintignore eslint: Lint all files except those in .eslintignore 2022-04-13 15:44:49 +01:00
.eslintrc.json eslint: Lint root files with server rules 2022-03-17 23:39:53 +00:00
.gitignore selenium: The first test 2021-11-09 16:11:22 +01:00
.gitmodules .gitmodules: Update gerrit URI syntax, deprecated ages ago, now unsupported 2019-03-19 16:49:03 +00:00
.gitreview
.mailmap Update Legoktm's mailmap entry 2021-04-11 19:18:33 -07:00
.phpcs.xml ApiVisualEditor: Remove $wgTitle hack, set page for {{PAGENAME}} when needed 2022-02-28 23:43:54 +00:00
.stylelintrc.json build: Updating dependencies 2021-09-02 03:43:02 +00:00
AUTHORS.txt Replace non-breaking spaces in AUTHORS.txt 2022-04-19 16:09:48 +02:00
composer.json build: Upgrade mediawiki-phan-config to 0.11.1 2021-11-22 18:34:57 +00:00
CONTRIBUTING.md doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
extension.json Remove usage of protection related deprecated Title function 2022-04-14 22:06:02 +02:00
Gruntfile.js eslint: Lint all files except those in .eslintignore 2022-04-13 15:44:49 +01:00
jsduck.json Update all tests in the ve-mw module to use ES6 syntax 2021-04-30 08:07:54 +00:00
LICENSE.txt doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
package-lock.json build: Update stylelint-config-wikimedia to 0.12.1 2022-02-20 13:59:31 +00:00
package.json build: Update stylelint-config-wikimedia to 0.12.1 2022-02-20 13:59:31 +00:00
Rakefile
README.md Add newline to README.md to fx render issue 2021-09-03 14:54:50 +02:00
VisualEditor.i18n.alias.php doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00

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.

Terminology