mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 17:18:41 +00:00
2f31681922
There is a TODO about this but these were never handled. This lack of handling caused weird offset issues when editing paragraphs containing inline aliens, because the text of the inline alien was returned. Instead, return an appropriate number of characters so the offset logic keeps working. Removed the textContent||innerText code because it would bypass the uneditable node logic: paragraphNode.textContent would return the text of the entire paragraph (including any aliens), and we'd never descend into the paragraph to reach the alien node. Change-Id: Ia05755755dd5380cb9a0b5a0334c6721b4e0d3b7 |
||
---|---|---|
.. | ||
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 |