mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-28 04:36:49 +00:00
ea3fccccaa
We used to attempt to not break Firefox's bfcache, but this didn't really work very well, and it's not clear that avoiding bfcache breakage is even a good idea. It's more sensible and consistent to deliberately break bfcache while VE is active. On top of that, the Firefox people believe that our trick shouldn't even have worked to begin with: https://bugzilla.mozilla.org/show_bug.cgi?id=1102664 Because the onbeforeunload handler is removed when VE is deactivated, bfcache still works if you first click Read, then navigate away. Also clean up the management of the unload handler, using addEventListener() and removing the return value fallback code that is needed for beforeunload but not unload. For beforeunload this is harder to clean up because the addEventListener()-based API for returning a value isn't consistent across browsers. Change-Id: Ie4fe9ea3a59a54ba462733aa5e42bfc0ed5b15eb |
||
---|---|---|
.docs | ||
bin | ||
build/tasks | ||
lib | ||
modules | ||
.csslintrc | ||
.gitignore | ||
.gitmodules | ||
.gitreview | ||
.jscsrc | ||
.jshintignore | ||
.jshintrc | ||
.rubocop.yml | ||
.rubocop_todo.yml | ||
ApiVisualEditor.php | ||
ApiVisualEditorEdit.php | ||
AUTHORS.txt | ||
betafeatures-icon-VisualEditor-ltr.svg | ||
betafeatures-icon-VisualEditor-rtl.svg | ||
CONTRIBUTING.md | ||
extension.json | ||
Gemfile | ||
Gemfile.lock | ||
Gruntfile.js | ||
LICENSE.txt | ||
package.json | ||
README.md | ||
VisualEditor.hooks.php | ||
VisualEditor.php | ||
VisualEditorDataModule.php | ||
VisualEditorViewPageTargetInitModule.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.