Disable monaco editor on mobile
This commit is contained in:
parent
a5795b2b70
commit
bd56f475a5
@ -188,6 +188,9 @@ let MediaWikiTokenizer = (function () {
|
||||
require.config({ paths: { vs: '/extensions/MonacoEditor/node_modules/monaco-editor/min/vs' } });
|
||||
|
||||
require(['vs/editor/editor.main'], function () {
|
||||
// Disable editor on mobile
|
||||
if (typeof window.RLCONF.wgMFAmc !== 'undefined') return;
|
||||
|
||||
let el_stock_editor = document.getElementById("wpTextbox1");
|
||||
el_stock_editor.style.display = "none";
|
||||
|
||||
|
Reference in New Issue
Block a user