mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 08:34:54 +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 |
||
---|---|---|
.. | ||
actions | ||
ce | ||
dm | ||
init | ||
test | ||
ui | ||
ve.Action.js | ||
ve.ActionFactory.js | ||
ve.AnnotationSet.js | ||
ve.BranchNode.js | ||
ve.Command.js | ||
ve.CommandRegistry.js | ||
ve.debug.js | ||
ve.Document.js | ||
ve.EventEmitter.js | ||
ve.Factory.js | ||
ve.js | ||
ve.LeafNode.js | ||
ve.Node.js | ||
ve.OrderedHashSet.js | ||
ve.Position.js | ||
ve.Range.js | ||
ve.Registry.js | ||
ve.Surface.js |