mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 23:05:35 +00:00
0516b1d7f0
Check for all node classes in getOffsetFromTextNode(), not just branches and aliens (an entity is neither) Render entities with contenteditable=false. Without this, selection was still broken, because: Foo|€Bar was really <p>Foo<span>|€</span>Bar</p> which maps correctly. Foo€|Bar was really <p>Foo<span>€|</span>Bar</p> which maps to the same, which is incorrect. With cE=false, the cursor can't be inside the span, so we get: Foo|€Bar is really <p>Foo|<span>€</span>Bar</p> which maps correctly. Foo€|Bar is really <p>Foo<span>€</span>|Bar</p> which maps correctly. Change-Id: Iaf603346590a9ad553c152565eb203136be7a399 |
||
---|---|---|
.. | ||
nodes | ||
styles | ||
ve.ce.BranchNode.js | ||
ve.ce.Document.js | ||
ve.ce.js | ||
ve.ce.LeafNode.js | ||
ve.ce.Node.js | ||
ve.ce.NodeFactory.js | ||
ve.ce.Surface.js | ||
ve.ce.SurfaceObserver.js |