mediawiki-extensions-Visual.../modules/ve-mw/init
Bartosz Dziewoński ae8b0a1f36 Replace $wgVisualEditorSupportedSkins with a check for required elements
The bare minimum of elements that must be present on the page for
VisualEditor to start and mostly work is:

* '#content' to attach our interface (toolbar etc.)
* '#mw-content-text' to replace with the editing surface
* '#ca-edit' to start up the editor

When those elements are missing (and we expect them to be present,
e.g. we're not on a special page), we print a console warning.

For example, VisualEditor now launches on Timeless and CologneBlue.
It does not launch and prints a warning on Modern and Erudite.
(It is actually possible to edit and save pages on CologneBlue,
although various pieces of the interface look funny.)

This does not change which skins we claim to support: these are still
currently only Vector, MonoBook and Apex. But it allows third-party
skin developers to more easily test the editor and fiddle with their
CSS to make it look right.

Bug: T161373
Change-Id: I97c786f3c8c795c238b10bef332a129ea26f86c2
2017-03-29 18:13:05 +00:00
..
styles Consistently use #catlinks to refer to category links container 2017-03-29 17:36:58 +00:00
targets Replace $wgVisualEditorSupportedSkins with a check for required elements 2017-03-29 18:13:05 +00:00
classListSkipFunction.js build: Bump file copyright notices for 2017 2017-01-03 08:58:33 -08:00
ve.init.mw.ApiResponseCache.js build: Bump file copyright notices for 2017 2017-01-03 08:58:33 -08:00
ve.init.mw.ArticleTarget.js Don't use '#content #firstHeading', unnecessarily specific 2017-03-29 17:37:29 +00:00
ve.init.mw.ArticleTargetEvents.js ArticleTarget: Give users a specific message when HookAborted errors happen 2017-01-11 10:46:30 -08:00
ve.init.mw.ArticleTargetLoader.js ArticleTargetLoader: wikitext switch shouldn't require FullRestbaseURL 2017-03-09 11:30:16 -06:00
ve.init.mw.GalleryImageInfoCache.js build: Bump file copyright notices for 2017 2017-01-03 08:58:33 -08:00
ve.init.mw.ImageInfoCache.js build: Bump file copyright notices for 2017 2017-01-03 08:58:33 -08:00
ve.init.mw.js build: Bump file copyright notices for 2017 2017-01-03 08:58:33 -08:00
ve.init.mw.LinkCache.js build: Bump file copyright notices for 2017 2017-01-03 08:58:33 -08:00
ve.init.mw.Platform.init.js build: Bump file copyright notices for 2017 2017-01-03 08:58:33 -08:00
ve.init.mw.Platform.js build: Bump file copyright notices for 2017 2017-01-03 08:58:33 -08:00
ve.init.mw.Target.js Fix typo in surfaceReady documentation 2017-03-22 20:35:42 +00:00
ve.init.mw.trackSubscriber.js build: Bump file copyright notices for 2017 2017-01-03 08:58:33 -08:00
ve.init.MWEditingTabDialog.js build: Bump file copyright notices for 2017 2017-01-03 08:58:33 -08:00
ve.init.MWEditModeTool.js Use more specific event name for switching editor from the toolbar 2017-02-28 23:07:54 +00:00
ve.init.MWVESwitchConfirmDialog.js build: Bump file copyright notices for 2017 2017-01-03 08:58:33 -08:00
ve.init.MWVESwitchPopupWidget.js Use list tool group for editor switching 2017-02-28 15:06:48 +00:00
ve.init.MWWelcomeDialog.js build: Bump file copyright notices for 2017 2017-01-03 08:58:33 -08:00