Go to file
Thiemo Kreuz 9fee89890a Avoid/simplify possibly slow regular expressions
In detail:

* Just compare strings where possible. Sometimes the first character
alone is distinct enough.

* Add missing ^ anchor to avoid possibly running unbound pattern
searches. This is not strictly necessary when we know the input is
fixed-length. Still I find it more robust and more obvious what it's
meant to do. Not to "search for some match somewhere" but to check if
the input _is_ a match.

Change-Id: I9b7651d8ec1266521c22b38ccabb95a947903f72
2022-03-24 11:20:01 +01:00
.jsduck Update VE core submodule to master (2947b78df) 2021-12-16 17:08:47 +01: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
build eslint: Lint root files with server rules 2022-03-17 23:39:53 +00:00
i18n Localisation updates from https://translatewiki.net. 2022-03-24 08:35:27 +01:00
images Manually optimize BetaFeatures .svg files 2021-09-02 11:38:14 +02:00
includes Namespace rest of the extension 2022-03-14 22:27:15 +00:00
lib Update VE core submodule to master (fc0e3ed33) 2022-03-22 01:34:12 +01:00
maintenance Raise PHP coding standards in this codebase a bit 2021-11-08 13:34:29 +01:00
modules Avoid/simplify possibly slow regular expressions 2022-03-24 11:20:01 +01:00
screenshots
tests Namespace rest of the extension 2022-03-14 22:27:15 +00: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
.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
composer.json build: Upgrade mediawiki-phan-config to 0.11.1 2021-11-22 18:34:57 +00:00
CONTRIBUTING.md
extension.json Merge "Remove MWDismissibleMessageWidget and use MessageWidget's showClose option instead" 2022-03-17 11:43:33 +00:00
Gruntfile.js eslint: Lint root files with server rules 2022-03-17 23:39:53 +00: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
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

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