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

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

跳转到导航 跳转到搜索
添加48字节 、​ 2020年12月23日 (三) 01:37
无编辑摘要
'.inspector { position:fixed; right:24px; left:unset !important; width:calc(50% - 7rem - 0.5px); }' );
cssHide.disabled = true;
var dialog, actionP, actionD, text, editor, wrapper, nextid, curtimestamp;
const $content = $('#mw-content-text, #mw-imagepage-content').last(),
original = $content.children( '.mw-parser-output' ),
btns = [new OO.ui.ButtonWidget({label: '提交', flags: ['primary', 'progressive']}).on('click', function() {
btns[0].setDisabled( true );
mw.safeEdit(api, mw.request.curtimestamp, {pageid: id, text: editor.getValue(),
summary: wgULS('使用页面/文本对比查看器快速编辑', '使用頁面/文本對比察看器快速編輯')}).then(function() {
window.location.reload();
console.log('End API request: 已获得页面Wikitext');
text = data[0].query.pages[0].revisions[0].content;
curtimestamp = data[0].curtimestamp;
outer.removeClass( 'mw-ajax-loader' );
editor = new CodeMirror(outer[0], {value: text, mode: 'text/mediawiki', mwConfig: config[0],
16,874

个编辑

导航菜单