Go to file
Thiemo Kreuz 74bffc5d0d Fix sidebar losing focus when unchecking params with space
1. Before, removePages() was calling setPage() with null. This makes
sense for removed top-level parts because these are really removed
from both sides of the dialog. Template parameters are never removed.
Only unchecked (and removed from the right side of the dialog, but
this is not what this code is about). When I navigate a parameter
list and uncheck a parameter I need the focus and highlighting to
stay.

2. We have a dedicated method when a parameter is unchecked. This
can check if the removed parameter is also the selected one (called
"set" in this code) and can reset this state. Without losing the
highlighting or anything else.

Bug: T312213
Change-Id: Ibb717ca49cae805617ebee196937c79daa72f1c1
2022-07-20 09:19:59 +00:00
.jsduck Copy BookletLayout implementation from ooui-js 0.44.0 2022-06-21 11:06:44 +02:00
.phan
.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-07-19 08:17:46 +02:00
images
includes Remove unused media/meta-related messages 2022-07-13 13:56:41 +02:00
lib Update VE core submodule to master (1800c35de) 2022-07-16 19:18:02 +02:00
maintenance Raise PHP coding standards in this codebase a bit 2021-11-08 13:34:29 +01:00
modules Fix sidebar losing focus when unchecking params with space 2022-07-20 09:19:59 +00:00
screenshots
tests Merge "ApiVisualEditorTest: Set Database annotation and $tablesUsed" 2022-07-12 13:31:02 +00: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
.gitreview
.mailmap
.phpcs.xml ApiVisualEditor: Remove $wgTitle hack, set page for {{PAGENAME}} when needed 2022-02-28 23:43:54 +00:00
.stylelintrc.json build: Update stylelint-config-wikimedia to 0.13.0 2022-05-04 22:54:48 +01:00
AUTHORS.txt Replace non-breaking spaces in AUTHORS.txt 2022-04-19 16:09:48 +02:00
composer.json build: Updating dependencies 2022-05-20 10:06:25 +00:00
CONTRIBUTING.md
extension.json Remove temporary compat for $wgVectorTitleAboveTabs = false 2022-07-18 17:41:20 +02:00
Gruntfile.js eslint: Lint all files except those in .eslintignore 2022-04-13 15:44:49 +01:00
jsduck.json
LICENSE.txt
package-lock.json build: Updating dependencies 2022-05-20 10:06:25 +00:00
package.json selenium: Run only one test in Jenkins daily job 2022-06-02 15:43:43 +02:00
Rakefile
README.md
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