mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 08:34:54 +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 |
||
---|---|---|
.. | ||
es.DocumentModel.js | ||
es.HeadingModel.js | ||
es.ListItemModel.js | ||
es.ListModel.js | ||
es.ParagraphModel.js | ||
es.PreModel.js | ||
es.SurfaceModel.js | ||
es.TableCellModel.js | ||
es.TableModel.js | ||
es.TableRowModel.js | ||
es.TransactionModel.js |