mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 08:34:54 +00:00
11c56f79c9
.getClientRects() somestimes returns an empty collection which causes an exception to be thrown by rangy. This corresponds to .getBoundingDocumentRect() returning a hash full of zeroes. Detect this and handle such ranges separately, by inserting dummy DOM elements at the selection's beginning and end, then using their position to determine where the actual selection was. This behavior is seen sometimes in Opera, and in Chrome by using the link tool on text at the beginning of the document. Bug: 47772 Change-Id: I4bad882d1d6fb83bcdcfd0de3bfc9af52960c2ff |
||
---|---|---|
.. | ||
annotations | ||
nodes | ||
styles | ||
ve.ce.Annotation.js | ||
ve.ce.AnnotationFactory.js | ||
ve.ce.BranchNode.js | ||
ve.ce.ContentBranchNode.js | ||
ve.ce.Document.js | ||
ve.ce.DomRange.js | ||
ve.ce.FocusableNode.js | ||
ve.ce.js | ||
ve.ce.LeafNode.js | ||
ve.ce.Node.js | ||
ve.ce.NodeFactory.js | ||
ve.ce.RelocatableNode.js | ||
ve.ce.ResizableNode.js | ||
ve.ce.Surface.js | ||
ve.ce.SurfaceObserver.js | ||
ve.ce.View.js |