Content deleted Content added
+bengali translation |
let's try this, to unbreak wikEd + syntax highlight beta, by piggy backing on the code editor check for now. |
||
Line 14:
// ==UserScript==
// @name wikEd
// @version 0.9.
// @date
// @namespace https://en.wikipedia.org/wiki/User:Cacycle/
// @description A full-featured in-browser editor for Wikipedia and other MediaWikis
Line 1,501:
wikEd.useCodeEditor = false;
wikEd.codeEditorButtonPollCount = 0;
wikEd.useSyntaxHighlighting = 0;
// history
Line 4,089 ⟶ 4,090:
}
// This can't work 100%, because async...
// Not a problem for gadget, as it ensures this dependency is loaded
window.mw.loader.using( 'user.options' ).then( function() {
wikEd.useBetaToolbar = true;▼
if (window.mw.user.options.get('
wikEd.
if (window.mw.user.options.get('usecodeeditor') == 1) {
}
if (window.mw.user.options.get('codemirror-syntax-highlight') == 1){
wikEd.useCodeEditor = true;
wikEd.useSyntaxHighlighting = true;
}
}
} );
}
}
|