mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
76defa7ce2
MWBlockImage * Remove properties which just cache model properties. We can get fresh values from the model whenever needed and this just causes problems keeping them in sync. * Tidy up DOM documentation indentation * Merge setupCaption and setCaptionVisible into updateCaption. The caption's visibility can be calculated inside the method from model attributes. * No need to generate figcaption on init, updateCaption will do this for us * Storing full view and model in this.caption is unnecessary, just store this.$caption (view.$element) and this.captionVisible * Append the caption directly to the figure now there is no container * Simplify setCaptionVisible * Add in fix to account for border to figure width * updateSize can get values from the model if they are not provided * Remove unnecessary styles being set on this.$element. MWImageCaption * Generate as a figcaption instead of a div for direct attachment MWImage * Missing docs CSS * Cleanup reset styles, remove redundant add in required * Fix margins for left/right floats to match .tleft/.tright * Use more specific selector for inner border (thumbimage) to avoid matching shields. * Remove unnecessary frameless styles, it has no border by default. Change-Id: I52e0e10b465bb9761c2e4be28c98bec37b0dd2ca |
||
---|---|---|
.docs | ||
bin | ||
build | ||
demos | ||
modules | ||
.csslintignore | ||
.csslintrc | ||
.gitignore | ||
.gitreview | ||
.jscs.json | ||
.jshintignore | ||
.jshintrc | ||
ApiVisualEditor.php | ||
ApiVisualEditorEdit.php | ||
AUTHORS.txt | ||
betafeatures-icon-VisualEditor-formulae-ltr.svg | ||
betafeatures-icon-VisualEditor-formulae-rtl.svg | ||
betafeatures-icon-VisualEditor-ltr.svg | ||
betafeatures-icon-VisualEditor-rtl.svg | ||
CONTRIBUTING.md | ||
Gruntfile.js | ||
LICENSE.txt | ||
package.json | ||
README.md | ||
VisualEditor.hooks.php | ||
VisualEditor.i18n.php | ||
VisualEditor.php | ||
VisualEditorDataModule.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 CODING.md. Patch submissions are reviewed and managed with Gerrit. There is also API documentation available for the VisualEditor.