mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 23:05:35 +00:00
92ffa0739d
This bug caused all references containing complex content (e.g. links or templates) to be dirty-DOMed and reformatted by Parsoid. ve.dm.MWReferenceNode.js: * Parse the original body.html and check if it's semantically equal to the new value. If so, don't set it. ve.dm.Converter.js: * .normalize() the converter output to remove empty text nodes and merge adjacent text nodes ve.dm.example.js: * Update reused reference test to have body.html absent, not empty * Add a link to one of the reference tests so this bug is triggered ** The link's attributes are ordered specifically so that toDomElements will reorder them, at least in Chrome (may behave differently in other browsers) ** This test fails without this fix in place Change-Id: Idc091a14422fbb117a3d06fc6bb9497768086fc3 |
||
---|---|---|
.docs | ||
demos | ||
maintenance | ||
modules | ||
.csslintrc | ||
.gitignore | ||
.gitreview | ||
.jshintignore | ||
.jshintrc | ||
ApiVisualEditor.php | ||
AUTHORS.txt | ||
CODING.md | ||
Gruntfile.js | ||
LICENSE.txt | ||
package.json | ||
README.txt | ||
VisualEditor.hooks.php | ||
VisualEditor.i18n.php | ||
VisualEditor.php | ||
VisualEditorMessagesModule.php |
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 wiki: * http://www.mediawiki.org/wiki/VisualEditor * http://www.mediawiki.org/wiki/Parsoid