LLWiki正在建设中,欢迎加入我们

“MediaWiki:Gadget-inspect.js”的版本间差异

跳转到导航 跳转到搜索
添加18字节 、​ 2020年12月23日 (三) 01:24
无编辑摘要
$.when(getJSON, mw.request).then(function(config, data) {
console.log('End API request: 已获得页面Wikitext');
text = data[0].query.pages[0].revisions[0].content;
outer.removeClass( 'mw-ajax-loader' );
editor = new CodeMirror(outer[0], {value: text, mode: 'text/mediawiki', mwConfig: config[0], lineWrapping: true});
lineWrapping: true});
wrapper = $( editor.getWrapperElement() );
$('<div>', {html: btns.map(function(ele) { return ele.$element; })}).appendTo( outer );
16,874

个编辑

导航菜单