mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
17f4dc220a
I was using data.length to check if the range was out of bounds, but this is a problem when using selectNodes() inside of tree sync code (which happens when performing rebuilds). While tree sync is in progress, the model tree and the linear model don't match, so we shouldn't be looking at the linear model for information about the model tree. Instead, get the length of the DocumentNode and use that. ` Change-Id: I11a378544ce1281a89cdcd4363c5cb1bf56f3434 |
||
---|---|---|
api | ||
contentEditable | ||
demos | ||
modules | ||
tests | ||
.gitreview | ||
README | ||
SpecialVisualEditorSandbox.php | ||
VisualEditor.alias.php | ||
VisualEditor.i18n.php | ||
VisualEditor.php |
We're starting to merge bits from Wikidom and ParserPlayground tests here. Enjoy! Short-term work highlights: * convert parser to wikidom format & using the wikidom serializer * port/update/write more tests * Special: page to host the editor as a standalone demo * Opt-in test mode to switch the editor in on EditPage (initially blank) * Use serializer to save pages from editor * Use parser to load pages into editor Long-term work highlights: * more thorough & bulk testing * more extension support