mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
7702ec10dc
We were populating empty content nodes with zero-length text nodes to make round-trip tests in the test suite work (otherwise blanking a paragraph leaves behind a zero-length text node whereas creating an empty paragraph does not), but the empty nodes are causing problems in CE apparently. * Do not create empty text nodes when constructing a node tree * Be more careful with text-only replacements: ** Don't resize a text node to zero, remove it instead ** There may not be a text node to resize at all, build it in that case ** Switch nodeRange to nodeOuterRange, this was probably broken before Tests: * Change test case for zero-length text node to assert that there is *no* zero-length text node :) * Remove a test case concerning an empty text node from the ve.ce.TextNode suite Change-Id: Ie677457f2f0a7823a517ba3077b844ef52a20fcc |
||
---|---|---|
demos/ve | ||
modules | ||
.gitignore | ||
.gitreview | ||
.jshintignore | ||
.jshintrc | ||
ApiVisualEditor.php | ||
AUTHORS.txt | ||
CODING.md | ||
LICENSE.txt | ||
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