mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 16:20:52 +00:00
2f31681922
There is a TODO about this but these were never handled. This lack of handling caused weird offset issues when editing paragraphs containing inline aliens, because the text of the inline alien was returned. Instead, return an appropriate number of characters so the offset logic keeps working. Removed the textContent||innerText code because it would bypass the uneditable node logic: paragraphNode.textContent would return the text of the entire paragraph (including any aliens), and we'd never descend into the paragraph to reach the alien node. Change-Id: Ia05755755dd5380cb9a0b5a0334c6721b4e0d3b7 |
||
---|---|---|
demos/ve | ||
modules | ||
.gitignore | ||
.gitreview | ||
.jshintignore | ||
.jshintrc | ||
ApiVisualEditor.php | ||
AUTHORS.txt | ||
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