Go to file
hmonroy 4a028f1336 React to hooks that are fired when inline switch is present
React to hooks fired by core when the inline diff type switch is
present. VE needs to be able to disable the inline switch
when 'visual' mode is selected and enable the switch when 'wikitext'
mode is selected. When the 'wikitext' mode is selected and there is an
inline switch, the interface needs to show the diff type format previously
selected.

Toggle using new `mw-diff-element-hidden` class that is used by core so
that there's no clashes when hidding and showing the diffs.

Bug: T331589
Depends-On: Ie6a48e495f2bb299d8b984e7c40363d534c7915b
Change-Id: I4f790370dbfeb521f3b61c4d604245f77094abe9
2023-06-26 04:20:16 +00:00
.jsduck jsduck: Add missing categories for MW classes 2023-06-12 19:04:37 +01:00
.phan ApiVisualEditorEdit: Switch to non-global FlaggablePageView::newFromTitle 2022-08-15 18:02:24 +00:00
bin updateSubmodule: Put list in topo (merged), not written, order 2018-05-10 08:51:37 -07:00
build Replace references to actionsToolbar 2023-04-27 15:51:35 +02:00
i18n Localisation updates from https://translatewiki.net. 2023-06-20 09:51:10 +02:00
images Remove the BetaFeatures integration for historical visual diffs 2023-04-18 22:34:05 +02:00
includes React to hooks that are fired when inline switch is present 2023-06-26 04:20:16 +00:00
lib Update VE core submodule to master (e2cf1e114) 2023-06-14 23:10:25 +02:00
maintenance Migrate usage of Database::select to SelectQueryBuilder 2022-08-12 22:35:30 +00:00
modules React to hooks that are fired when inline switch is present 2023-06-26 04:20:16 +00:00
screenshots
tests tests: Make PHPUnit data providers static 2023-05-20 17:02:35 +02:00
.eslintignore eslint: Lint all files except those in .eslintignore 2022-04-13 15:44:49 +01:00
.eslintrc.json Add basic end-to-end tests for action=visualeditor 2022-09-28 18:28:05 +02:00
.gitignore .gitignore: Add .vscode directory to .gitignore 2023-05-16 12:50:51 +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 stylelint: Auto-fix selector-pseudo-element-colon-notation 2023-03-12 22:03:06 +00:00
AUTHORS.txt Add VisualEditor's libraries to Special:Version 2023-05-10 08:46:51 +01:00
composer.json build: Updating dependencies 2023-04-27 01:04:37 +00:00
CONTRIBUTING.md doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
extension.json Merge "ApiVisualEditorEdit: Remove unnecessary check" 2023-06-15 18:09:26 +00:00
Gruntfile.js eslint: Lint all files except those in .eslintignore 2022-04-13 15:44:49 +01:00
jsduck.json Allow using native URL (or polyfill) 2023-01-03 22:18:00 +01:00
LICENSE.txt doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
package-lock.json build: Updating grunt-banana-checker to 0.11.0 2023-05-26 10:14:39 +00:00
package.json build: Updating grunt-banana-checker to 0.11.0 2023-05-26 10:14:39 +00:00
Rakefile build: npm/rake entry point for screenshots upload 2018-03-07 23:23:30 +01:00
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