mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
92c4e231f2
What happens when an edit tab is clicked is spread across handlers in DesktopArticleTarget and DesktopArticleTarget.init. Consolidating the logic into the handler in DesktopArticleTarget.init makes it easier to understand. It could be moved further into DesktopArticleTarget, but the init handler has to exist to activate the target in the first place. This patches a hole where clicking "edit source" while in visual mode would sometimes not switch to source mode, because it didn't think it was changing the current section. Also, fix a typo in the documentation. Bug: T198272 Change-Id: I12d958b6af1b9fa9aca68b498eb2a1a2d76b5a82 |
||
---|---|---|
.. | ||
ce | ||
dm | ||
init | ||
tests | ||
themes | ||
ui | ||
ve.MWutils.js |