mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
4041d3f342
We would dirty-diff "</span>\n<!-- comment -->\n<span>" to "</span>\n\n<!-- comment --><span>", i.e. the second newline made a bunny-hop to the left over the comment. The actual bug turned out to involve a double bunny-hop, with "</span> <!-- comment -->\n<span>" turning into "</span>\n <!--comment --><span>", i.e. the newline bunny-hops both the comment and the space. This happened because outputWrappedMetaItems() didn't take wrappedWhitespace into account when restoring meta items and associated whitespace. I hacked a check for wrappedWhitespace into it, but we should really just rewrite this pile of hacks into a unified system for queuing and processing both whitespace and metadata. Change-Id: I4375f4c07983ffec6877d0371aeaa9bf6e65fd6e |
||
---|---|---|
.docs | ||
demos | ||
maintenance | ||
modules | ||
.csslintrc | ||
.gitignore | ||
.gitreview | ||
.jshintignore | ||
.jshintrc | ||
ApiVisualEditor.php | ||
ApiVisualEditorEdit.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