mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
500570b4ca
When the editor is focused, the selection goes back to the start of the document. This was remedied in the .focus() method, but not in response to native focus events, so when external code blurred then refocused the editor, the selection would move to the top. This broke section editing on wikis where ULS is installed: the selection would be initialized at the start of the section, but then ULS would load and blur the documentNode (by focusing the pasteTarget) and then focus it again, so the selection would move to the top. Instead of restoring the selection only in .focus(), restore it in response to focus events on the documentNode. When this is done, saving and restoring the scrollTop is no longer needed. Bug: 56651 Change-Id: I14700174ee092f9b208215d31a7d1871078a89bf |
||
---|---|---|
.. | ||
ce | ||
dm | ||
init | ||
test | ||
ui | ||
ve.BranchNode.js | ||
ve.debug.js | ||
ve.Document.js | ||
ve.EventSequencer.js | ||
ve.js | ||
ve.LeafNode.js | ||
ve.Node.js | ||
ve.Range.js | ||
ve.track.js |