mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
6832be68ed
* Fix getScope() ** Drop the -1 which caused the result to be off by one level ** Prevent JS errors from occurring if bad input causes the loop to try to traverse up above the root node * insert() ** Detect the case where the input data tries to close the containing element; in that case, we'll get scope != node ** Move the getNodeFromOffset() and getScope() calls up and out of the conditionals ** Remove unnecessary parent==model conditional, no longer needed now that getScope() can safely handle things that try to traverse too far up ** Add some comments to explain what's going on. I'll restructure this function a bit more shortly |
||
---|---|---|
api | ||
contentEditable | ||
demo | ||
modules | ||
tests | ||
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