mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
b9eb06349f
Change-Id: I8fbbfcb3e47a9319398af7262effc1f7cf3df51f
22 lines
529 B
JavaScript
22 lines
529 B
JavaScript
/**
|
|
* VisualEditor User Interface namespace.
|
|
*
|
|
* All classes and functions will be attached to this object to keep the global namespace clean.
|
|
*/
|
|
ve.ui = {
|
|
// Path to UI assets for direct loading
|
|
'stylesheetPath': 'extensions/VisualEditor/modules/ve/ui/styles/'
|
|
};
|
|
|
|
/*
|
|
* @method static
|
|
* Returns UI stylesheet path
|
|
*/
|
|
ve.ui.getStylesheetPath = function() {
|
|
if ( 'mw' in window ) {
|
|
return mw.config.get( 'wgExtensionAssetsPath' ) + '/VisualEditor/modules/ve/ui/styles/';
|
|
} else {
|
|
return ve.ui.stylesheetPath;
|
|
}
|
|
};
|