Go to file
Bartosz Dziewoński 9ef039dd4b DesktopArticleTarget.init: Fix URI comparison if it contains a port number
If the wiki runs on a host that contains a port number, section edit
links would always reload the page, and the "Add section" tab would
not work.

As it happens, my local testing wiki runs on localhost:3080.

It is an unfortunate naming mishap:
* mw.Uri#host is equivalent to location.hostname
* mw.Uri#getHostPort is equivalent to location.host

In this case, we have to compare the port too, otherwise a setup (my
setup ;) ) where one starts up another wiki on localhost:3081 to test
cross-wiki features would fail.

Change-Id: Ib7de4ba3c3a84888f24186af03bd9dcced131051
2018-07-04 00:11:48 +02:00
.jsduck Update VE core submodule to master (52bd0592b) 2018-06-22 09:12:35 +02:00
bin updateSubmodule: Put list in topo (merged), not written, order 2018-05-10 08:51:37 -07:00
build Use Tool.$link.focus() for highlighting now OOUI styles :focus 2018-05-02 12:52:17 +01:00
i18n Localisation updates from https://translatewiki.net. 2018-06-25 22:22:19 +02:00
images Merge "Re-crush beta feature SVG screenshots" 2018-02-08 12:18:28 +00:00
includes Pass content language in Accept-Language header to RESTBase 2018-06-26 16:42:35 +01:00
lib Update VE core submodule to master (fab33197b) 2018-06-26 23:16:09 +02:00
maintenance doc: Document all public and protected PHP functions 2018-03-28 12:50:44 -07:00
modules DesktopArticleTarget.init: Fix URI comparison if it contains a port number 2018-07-04 00:11:48 +02:00
screenshots
.eslintrc.json eslint: Move qunit env flag to test config 2018-06-05 21:12:56 +01:00
.gitignore Add .idea to .gitignore 2017-01-27 13:16:58 +01:00
.gitmodules
.gitreview
.mailmap Update AUTHORS.txt for the last couple of years' work 2018-01-03 11:51:37 -08:00
.phpcs.xml doc: Document all public and protected PHP functions 2018-03-28 12:50:44 -07: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 Update VE core submodule to master (6111ca575) 2017-08-21 11:28:34 -07:00
AUTHORS.txt Update AUTHORS.txt for the last couple of years' work 2018-01-03 11:51:37 -08:00
composer.json build: Updating mediawiki/mediawiki-codesniffer to 20.0.0 2018-05-25 23:18:11 +00:00
CONTRIBUTING.md Update link to contributing guidelines 2017-08-21 18:22:35 -04:00
extension.json Update link contexts with label info from core 2018-06-26 21:16:53 +00: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: Follow-up 99d3320573: Drop babel-polyfill, never used 2018-04-25 12:59:50 -07:00
jsduck.json Update VE core submodule to master (7a8829509) 2017-08-31 11:39:36 -07:00
LICENSE.txt doc: Bump copyright year 2018-01-03 17:45:07 +00:00
package.json build: Introduce eslint-plugin-qunit 2018-05-30 21:04:02 +01:00
Rakefile build: npm/rake entry point for screenshots upload 2018-03-07 23:23:30 +01:00
README.md
VisualEditor.i18n.alias.php Rebaser: Add more aliases for special page 2018-05-02 12:02:11 +01:00
VisualEditor.php doc: Document all public and protected PHP functions 2018-03-28 12:50:44 -07: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.