mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
4e938e58c7
ve.init.Target sets up TriggerListeners based on getSurfaceConfig if there's no Surface instantiated. As such, loading directly in source mode would have those listeners present and assuming the document is in visual mode. So, if there's not a Surface already, we'll assume we're going to get one created with the defaultMode, and set things up expecting that. Bug: T153959 Change-Id: Ia0afe32e6b63ea0d3418137ca5c8bc32c009ecfa |
||
---|---|---|
.. | ||
ve-mw | ||
ve-mw-collab | ||
ve-wmf/i18n |