mediawiki-extensions-Visual.../modules/ve-mw/init
Bartosz Dziewoński 7d69e86265 ve.init.mw.DesktopArticleTarget.init: Make switching to VE for new pages work
Work around RESTBase problem that causes errors if we try to switch to
VE when the wikitext is empty. This would prevent non-power-users from
opening VE entirely.

This only solves the issue for new empty pages, and not when the user
intentionally empties the edit box. In that case, though, they get a
dialog where they can choose to "keep" or "discard" changes, and
discarding lets you open the editor.

Bug: T118152
Change-Id: Ie808bcaa9826deacac392dd6cbc90a9446602b79
2015-11-09 18:55:21 +01:00
..
styles Target init: Add edit mode switch icons to VE and WE toolbars 2015-11-04 14:07:41 +00:00
targets ve.init.mw.DesktopArticleTarget.init: Make switching to VE for new pages work 2015-11-09 18:55:21 +01:00
ve.init.mw.ApiResponseCache.js build: Enable jscs jsDoc rule 'requireNewlineAfterDescription' and make pass 2015-08-19 11:21:01 -07:00
ve.init.mw.ImageInfoCache.js build: Enable jscs jsDoc rule 'requireNewlineAfterDescription' and make pass 2015-08-19 11:21:01 -07:00
ve.init.mw.js build: Bump copyright notices to 2015 2015-01-12 20:34:19 -08:00
ve.init.mw.LinkCache.js ve.init.mw.LinkCache: Update comment about Disambiguator extension 2015-09-24 19:20:12 +02:00
ve.init.mw.Platform.init.js Don't self-instantiate platform 2015-04-15 18:46:34 -07:00
ve.init.mw.Platform.js Implement getUserConfig and setUserConfig in MW 2015-09-01 01:03:38 +00:00
ve.init.mw.Target.js ve.init.mw.Target: Update TitleBlacklist error code 2015-11-05 04:07:38 +01:00
ve.init.mw.TargetEvents.js build: Enable jscs jsDoc rule 'requireNewlineAfterDescription' and make pass 2015-08-19 11:21:01 -07:00
ve.init.mw.TargetLoader.js Drop any beforeunload handlers when loading from existing wikitext 2015-11-07 03:57:19 +00:00
ve.init.mw.trackSubscriber.js mw.trackSubscriber: Log platform as phone vs. desktop 2015-09-05 21:29:03 +00:00
ve.init.MWVESwitchConfirmDialog.js Don't allow keeping changes when switching from wikitext *section* editing 2015-11-04 16:19:36 +00:00