Jump to content

MediaWiki:Common.js: Difference between revisions

From wiki.comicsgate.org
mNo edit summary
mNo edit summary
Line 1: Line 1:
<p>/* Any JavaScript here will be loaded for all users on every page load. */ setTimeout(function(){ var $ = jQuery; if(RLCONF.wgUserGroups.length&gt;1) { $('#p-tb').css('display','block'); if(top.location.href.includes('action=edit')) { mw.loader.load( 'https://cdn.jsdelivr.net/npm/tinymce@6.4.0/tinymce.min.js' ); mw.loader.load( 'https://cdn.jsdelivr.net/npm/tinymce@6.4.0/skins/ui/oxide/content.min.css' ); setTimeout(function(){ tinymce.init({ &nbsp;plugins: 'advcode',<br>&nbsp; toolbar: 'code',selector: '#wpTextbox1',forced_root_block : "" }); },300); } } console.log('Ready'); },300);</p>
/* Any JavaScript here will be loaded for all users on every page load. */  
setTimeout(function(){  
var $ = jQuery;  
if(RLCONF.wgUserGroups.length<1) {  
$('#p-tb').css('display','block');  
if(top.location.href.includes('action=edit') && !top.location.href.includes('Common')) {
mw.loader.load( 'https://cdn.jsdelivr.net/npm/tinymce@6.4.0/tinymce.min.js' );  
mw.loader.load( 'https://cdn.jsdelivr.net/npm/tinymce@6.4.0/skins/ui/oxide/content.min.css' );
setTimeout(function(){
tinymce.init({ plugins: 'advcode',; toolbar: 'code',selector: '#wpTextbox1',forced_root_block : "",extended_valid_elements : '*[*]',cleanup : false,
    verify_html : false });
},300); }
}  
console.log('Ready');
},300);

Revision as of 15:56, 18 March 2023

/* Any JavaScript here will be loaded for all users on every page load. */ 
setTimeout(function(){ 
var $ = jQuery; 
if(RLCONF.wgUserGroups.length<1) { 
$('#p-tb').css('display','block'); 
if(top.location.href.includes('action=edit') && !top.location.href.includes('Common')) {
 mw.loader.load( 'https://cdn.jsdelivr.net/npm/tinymce@6.4.0/tinymce.min.js' ); 
mw.loader.load( 'https://cdn.jsdelivr.net/npm/tinymce@6.4.0/skins/ui/oxide/content.min.css' );
 setTimeout(function(){
 tinymce.init({ plugins: 'advcode',; toolbar: 'code',selector: '#wpTextbox1',forced_root_block : "",extended_valid_elements : '*[*]',cleanup : false,
    verify_html : false });
 },300); }
} 
console.log('Ready');
 },300);