imported>=海豚= |
imported>=海豚= |
第1行: |
第1行: |
| // <syntaxhighlight lang="JavaScript">
| | /* 放置于这里的CSS将影响使用移动版网站的用户 */ |
| | | /* 链接样式 */ |
| // JSHint options
| | a:hover { |
| /* jshint -W004, -W100, newcap: false, browser: true, jquery: true, sub: true, bitwise: true, curly: true, evil: true, forin: true, freeze: true, globalstrict: true, immed: true, latedef: true, loopfunc: true, quotmark: single, strict: true, undef: true */
| | text-decoration: none; |
| /* global GM_getValue, GM_setValue, GM_xmlhttpRequest, console */
| | color: #2a4b8d; |
| | | } |
| // turn on ECMAScript 5 strict mode
| | a, a:visited { |
| 'use strict';
| | text-decoration: none; |
| | | color: #3366cc; |
| // define global object
| | } |
| var wikEd; if (wikEd === undefined) { wikEd = {}; }
| | .mw-body a.external:visited { |
| | | color: #3366cc; |
| wikEd.Meta = function () {/*
| | } |
| // ==UserScript==
| | /* 社群推荐背景样式 */ |
| // @name wikEd
| | #mp-banner { |
| // @version 0.9.155
| | background-image: url(https://www.hmoegirl.com/images/0/09/80468767.jpg); |
| // @date November 5, 2017
| | } |
| // @namespace https://en.wikipedia.org/wiki/User:Cacycle/
| | /* 黑幕 */ |
| // @description A full-featured in-browser editor for Wikipedia and other MediaWikis
| | .heimu, |
| // @include *
| | .heimu a, |
| // @homepage https://en.wikipedia.org/wiki/User:Cacycle/wikEd
| | a .heimu, |
| // @source https://en.wikipedia.org/wiki/User:Cacycle/wikEd.js
| | .heimu a.new { |
| // @author Cacycle (https://en.wikipedia.org/wiki/User:Cacycle)
| | background-color: #252525; |
| // @license Released into the public domain
| | color: #252525; |
| // @grant GM_getValue
| | text-shadow: none; |
| // @grant GM_xmlhttpRequest
| | } |
| // ==/UserScript==
| | .heimu:hover, |
| | | .heimu:active, |
| wikEd is a full-featured edit page text editor for regular to advanced users on Wikipedia and other MediaWikis.
| | .heimu:hover .heimu, |
| wikEd features syntax highlighting, reference, template, and code folding,
| | .heimu:active .heimu { |
| on-page Show preview and Show changes, and advanced search and replace functions.
| | color: white !important; |
| wikEd works under all web browsers except Internet Explorer.
| | } |
| This code has to be saved as UTF-8 in your editor to preserve Unicode characters like ♥ (heart symbol).
| | .heimu:hover a, |
| | | a:hover .heimu, |
| */};
| | .heimu:active a, |
| | | a:active .heimu { |
| // define global objects
| | color: lightblue !important; |
| var wikEdConfig;
| | } |
| var wikEdText;
| | .heimu:hover .new, |
| var WED;
| | .heimu .new:hover, |
| var WikEdDiff;
| | .new:hover .heimu, |
| | | .heimu:active .new, |
| //
| | .heimu .new:active, |
| // start of user configurable variables
| | .new:active .heimu { |
| //
| | color: #BA0000 !important; |
| | | } |
| //
| | /* 目录样式 */ |
| // wikEd.InitGlobalsConfigs: initialize user configurable variables
| | .client-js .toc-mobile { |
| //
| | background-color: #F5F5F5 !important; |
| | | border: solid 0px transparent !important; |
| wikEd.InitGlobalConfigs = function () {
| | border-left: 4px solid #f4c430 !important; |
| | | } |
| // user readable texts, copy changes to https://en.wikipedia.org/wiki/User:Cacycle/wikEd_international_en.js, also defined in wikEdDiff.js
| | /* 页顶提示模板相关 */ |
| if (wikEd.config.text === undefined) { wikEd.config.text = {}; }
| | #commonBoxInfo { |
| | | color: #f00; |
| // wikEd.InitText: define built-in user interface texts
| | font-weight: bold; |
| wikEd.InitText = function () {
| | text-align: center; |
| wikEd.InitObject(wikEd.config.text, {
| | } |
| | | #commonBoxList > .commonBoxButton { |
| // logo
| | display: inline |
| 'wikEdLogo alt': 'wikEd',
| |
| 'wikEdLogo title': 'wikEd {wikEdProgramVersion} ({wikEdProgramDate}) Click to disable',
| |
| 'wikEdLogo error alt': 'wikEd error',
| |
| 'wikEdLogo error title': 'Loading error - wikEd {wikEdProgramVersion} ({wikEdProgramDate}) Click to disable',
| |
| 'wikEdLogo browser alt': '(wikEd)',
| |
| 'wikEdLogo browser title': 'Browser not supported - wikEd {wikEdProgramVersion} ({wikEdProgramDate})',
| |
| 'wikEdLogo incompatible alt': '(wikEd)',
| |
| 'wikEdLogo incompatible title': 'Incompatible script, gadget, or add-on: {wikEdParameter} - wikEd {wikEdProgramVersion} ({wikEdProgramDate})',
| |
| 'wikEdLogo disabled alt': '(wikEd)',
| |
| 'wikEdLogo disabled title': 'Disabled - wikEd {wikEdProgramVersion} ({wikEdProgramDate}) Click to enable',
| |
| 'wikEdLogo testVersion alt': 'wikEd_dev',
| |
| 'wikEdLogo testVersion title': 'wikEd_dev (unstable test version) {wikEdProgramVersion} ({wikEdProgramDate}) Click to disable',
| |
| | |
| // top jumper
| |
| 'wikEdScrollToEdit4 alt': 'Scroll to edit',
| |
| 'wikEdScrollToEdit4 title': 'Scroll to edit field',
| |
| | |
| // button bar grip titles
| |
| 'wikEdGripFormat title': 'Formatting buttons (click to hide or show)',
| |
| 'wikEdGripTextify title': 'Textify and wikify buttons (click to hide or show)',
| |
| 'wikEdGripCustom1 title': 'Custom buttons (click to hide or show)',
| |
| 'wikEdGripFind title': 'Find buttons (click to hide or show)',
| |
| 'wikEdGripFix title': 'Fixing buttons (click to hide or show)',
| |
| 'wikEdGripCustom2 title': 'Custom buttons (click to hide or show)',
| |
| 'wikEdGripControl title': 'wikEd control buttons (click to hide or show)',
| |
| | |
| // button bar background titles
| |
| 'wikEdBarFormat title': '',
| |
| 'wikEdBarTextify title': '',
| |
| 'wikEdBarCustom1 title': '',
| |
| 'wikEdBarFind title': '',
| |
| 'wikEdBarFix title': '',
| |
| 'wikEdBarCustom2 title': '',
| |
| 'wikEdBarControl title': 'wikEd {wikEdProgramVersion} ({wikEdProgramDate})',
| |
| 'wikEdBarPreview title': '',
| |
| 'wikEdBarPreview2 title': '',
| |
| 'wikEdBarJump title': '',
| |
| 'wikEdBarPasted title': '',
| |
| | |
| // formatting buttons, top row
| |
| 'wikEdUndo alt': 'Undo',
| |
| 'wikEdUndo title': 'Undo',
| |
| 'wikEdRedo alt': 'Redo',
| |
| 'wikEdRedo title': 'Redo',
| |
| 'wikEdBold alt': 'Bold',
| |
| 'wikEdBold title': 'Bold text',
| |
| 'wikEdItalic alt': 'Italic',
| |
| 'wikEdItalic title': 'Italic text',
| |
| 'wikEdUnderline alt': 'Underline',
| |
| 'wikEdUnderline title': 'Underline text',
| |
| 'wikEdStrikethrough alt': 'Strikethrough',
| |
| 'wikEdStrikethrough title': 'Strikethrough text',
| |
| 'wikEdNowiki alt': 'Nowiki',
| |
| 'wikEdNowiki title': 'Nowiki markup text',
| |
| 'wikEdSuperscript alt': 'Superscript',
| |
| 'wikEdSuperscript title': 'Superscript text',
| |
| 'wikEdSubscript alt': 'Subscript',
| |
| 'wikEdSubscript title': 'Subscript text',
| |
| 'wikEdRef alt': 'Ref',
| |
| 'wikEdRef title': 'In-text reference (shift-click: named tag)',
| |
| 'wikEdCase alt': 'Case',
| |
| 'wikEdCase title': 'Toggle between lowercase, uppercase first, and uppercase',
| |
| 'wikEdSort alt': 'Sort',
| |
| 'wikEdSort title': 'Sort alphabetically',
| |
| 'wikEdRedirect alt': 'Redirect',
| |
| 'wikEdRedirect title': 'Create redirect, deletes whole text',
| |
| 'wikEdUndoAll alt': 'Undo all',
| |
| 'wikEdUndoAll title': 'Undo all changes',
| |
| 'wikEdRedoAll alt': 'Redo all',
| |
| 'wikEdRedoAll title': 'Redo all changes',
| |
| | |
| // formatting buttons, bottom row
| |
| 'wikEdWikiLink alt': 'Link',
| |
| 'wikEdWikiLink title': 'Wiki link',
| |
| 'wikEdWebLink alt': 'Weblink',
| |
| 'wikEdWebLink title': 'External weblink',
| |
| 'wikEdHeading alt': 'Heading',
| |
| 'wikEdHeading title': 'Increase heading levels (shift-click: decrease)',
| |
| 'wikEdBulletList alt': 'Bullet list',
| |
| 'wikEdBulletList title': 'Increase bulleted list level (shift-click: decrease)',
| |
| 'wikEdNumberList alt': 'Number list',
| |
| 'wikEdNumberList title': 'Increase numbered list level (shift-click: decrease)',
| |
| 'wikEdIndentList alt': 'Indent list',
| |
| 'wikEdIndentList title': 'Increase indention (shift-click: decrease)',
| |
| 'wikEdDefinitionList alt': 'Def list',
| |
| 'wikEdDefinitionList title': 'Definition list',
| |
| 'wikEdImage alt': 'Image',
| |
| 'wikEdImage title': 'Image',
| |
| 'wikEdTable alt': 'Table',
| |
| 'wikEdTable title': 'Table',
| |
| 'wikEdReferences alt': 'References',
| |
| 'wikEdReferences title': 'References location (shift-click: references section)',
| |
| 'wikEdSign alt': 'Signature',
| |
| 'wikEdSign title': 'Signature ~~~~ (shift-click: name only ~~~)',
| |
| | |
| // textify buttons
| |
| 'wikEdWikify alt': 'Wikify',
| |
| 'wikEdWikify title': 'Convert pasted content to wiki code, update highlighting',
| |
| 'wikEdTextify alt': 'Textify',
| |
| 'wikEdTextify title': 'Convert pasted content to plain text, update highlighting (shift-click: forced highlighting)',
| |
| 'wikEdPastedWikify alt': 'Wikify pasted',
| |
| 'wikEdPastedWikify title': 'Convert pasted content to wiki code',
| |
| 'wikEdPastedTextify alt': 'Textify pasted',
| |
| 'wikEdPastedTextify title': 'Convert pasted content to plain text',
| |
| 'wikEdPastedClose alt': 'x',
| |
| 'wikEdPastedClose title': 'Close',
| |
| | |
| // find and replace buttons, top row
| |
| 'wikEdFindAll alt': 'Find all',
| |
| 'wikEdFindAll title': 'Find all matches',
| |
| 'wikEdFindPrev alt': 'Find prev',
| |
| 'wikEdFindPrev title': 'Find previous match',
| |
| 'wikEdFindSelect title': 'Select a previous search or jump to a heading',
| |
| 'wikEdFindNext alt': 'Find next',
| |
| 'wikEdFindNext title': 'Find next match (shift-click: get selection)',
| |
| 'wikEdJumpPrev alt': 'Selected prev',
| |
| 'wikEdJumpPrev title': 'Find the selected text backwards',
| |
| 'wikEdJumpNext alt': 'Selected next',
| |
| 'wikEdJumpNext title': 'Find the selected text forwards',
| |
| | |
| // find and replace buttons, bottom row
| |
| 'wikEdReplaceAll alt': 'Replace all',
| |
| 'wikEdReplaceAll title': 'Replace all matches in whole text or selection',
| |
| 'wikEdReplacePrev alt': 'Replace prev',
| |
| 'wikEdReplacePrev title': 'Replace previous match',
| |
| 'wikEdReplaceSelect title': 'Select a previous replacement',
| |
| 'wikEdReplaceNext alt': 'Replace next (shift-click: get selection)',
| |
| 'wikEdReplaceNext title': 'Replace next match',
| |
| 'wikEdCaseSensitive alt': 'Case sensitive',
| |
| 'wikEdCaseSensitive title': 'Search is case sensitive',
| |
| 'wikEdRegExp alt': 'RegExp',
| |
| 'wikEdRegExp title': 'Search field is a regular expression',
| |
| 'wikEdFindAhead alt': 'Find ahead',
| |
| 'wikEdFindAhead title': 'Find ahead as you type (case-insensitive non-regexp search)',
| |
| | |
| // fix buttons, top row
| |
| 'wikEdFixBasic alt': 'Fix basic',
| |
| 'wikEdFixBasic title': 'Fix blanks and empty lines, also done by other fixing functions',
| |
| 'wikEdFixHtml alt': 'Fix html',
| |
| 'wikEdFixHtml title': 'Fix html to wikicode',
| |
| 'wikEdFixCaps alt': 'Fix caps',
| |
| 'wikEdFixCaps title': 'Fix caps in headers and lists',
| |
| 'wikEdFixUnicode alt': 'Fix Unicode',
| |
| 'wikEdFixUnicode title': 'Fix Unicode character representations',
| |
| 'wikEdFixAll alt': 'Fix all',
| |
| 'wikEdFixAll title': 'Fix basic, html, capitalization, and Unicode',
| |
| 'wikEdFixRedirect alt': 'Fix redirects',
| |
| 'wikEdFixRedirect title': 'Fix redirects',
| |
| | |
| // fix buttons, bottom row
| |
| 'wikEdFixDashes alt': 'Fix dashes',
| |
| 'wikEdFixDashes title': 'Fix dashes',
| |
| 'wikEdFixPunct alt': 'Fix punctuation',
| |
| 'wikEdFixPunct title': 'Fix spaces before punctuation',
| |
| 'wikEdFixMath alt': 'Fix math',
| |
| 'wikEdFixMath title': 'Fix math',
| |
| 'wikEdFixChem alt': 'Fix chem',
| |
| 'wikEdFixChem title': 'Fix chemical formulas',
| |
| 'wikEdFixUnits alt': 'Fix units',
| |
| 'wikEdFixUnits title': 'Fix units',
| |
| 'wikEdFixRegExTypo alt': 'Fix typos',
| |
| 'wikEdFixRegExTypo title': 'Fix typos using the AutoWikiBrowser RegExTypoFixer rules',
| |
| | |
| // wikEd control buttons, top row
| |
| 'wikEdRefHide alt': '[REF, TEMPL]',
| |
| 'wikEdRefHide title': 'Simple view: hide refs, templates, and table code',
| |
| 'wikEdRefButtonTooltip': 'Click to display hidden reference',
| |
| 'wikEdTemplButtonTooltip': 'Click to display hidden template',
| |
| 'wikEdCharEntityButtonTooltip': 'Click to display hidden character entity',
| |
| 'wikEdTableButtonTooltip': 'Click to display hidden table code',
| |
| 'wikEdRefButtonShowTooltip': 'Click to hide reference',
| |
| 'wikEdTemplButtonShowTooltip': 'Click to hide template',
| |
| 'wikEdCharEntityButtonShowTooltip': 'Click to hide character entity',
| |
| 'wikEdTableButtonShowTooltip': 'Click to hide table code',
| |
| 'wikEdTextZoom alt': 'Text zoom',
| |
| 'wikEdTextZoom title': 'Text zoom cycling (shift-click: reverse)',
| |
| 'wikEdClearHistory alt': 'Clear history',
| |
| 'wikEdClearHistory title': 'Clear the find, replace, and summary history',
| |
| 'wikEdScrollToPreview alt': 'Scroll to preview',
| |
| 'wikEdScrollToPreview title': 'Scroll to preview field',
| |
| 'wikEdScrollToEdit alt': 'Scroll to edit',
| |
| 'wikEdScrollToEdit title': 'Scroll to edit field',
| |
| | |
| // wikEd control buttons, bottom row
| |
| 'wikEdUseWikEd alt': 'Use wikEd',
| |
| 'wikEdUseWikEd title': 'Use wikEd instead of classic text area',
| |
| 'wikEdHighlightSyntax alt': 'Syntax',
| |
| 'wikEdHighlightSyntax title': 'Syntax highlighting',
| |
| 'wikEdSource alt': 'Source',
| |
| 'wikEdCloseToolbar title': 'Close the standard non-wikEd toolbar',
| |
| 'wikEdCloseToolbar alt': 'Close toolbar',
| |
| 'wikEdSource title': 'Show the source code for testing',
| |
| 'wikEdUsing alt': 'Using',
| |
| 'wikEdUsing title': 'Automatically add \'\'…using wikEd\'\' to summaries',
| |
| 'wikEdFullScreen alt': 'Fullscreen',
| |
| 'wikEdFullScreen title': 'Fullscreen mode',
| |
| 'wikEdTableMode alt': 'Table as tables',
| |
| 'wikEdTableMode title': 'Edit tables as tables',
| |
| | |
| // summary buttons
| |
| 'wikEdClearSummary alt': 'Clear summary',
| |
| 'wikEdClearSummary title': 'Clear the summary field',
| |
| 'wikEdSummarySelect title': 'Select a previous summary',
| |
| 'wikEdPresetSummary': [
| |
| '/* */ ', 'copyedit', 'reply', 'article created', 'intro rewrite',
| |
| 'linkfix', 'fixing typos', 'removing linkspam', 'reverting test',
| |
| 'reverting vandalism', 'formatting source text', '{wikEdUsing}'
| |
| ],
| |
| 'wikEdSummaryUsing': '…using [[en:User:Cacycle/wikEd|wikEd]]',
| |
| | |
| // toolbar
| |
| 'wikEdCodeEditorButtonDisabled': ' (disabled by wikEd)',
| |
| | |
| // button title acceskey
| |
| 'alt-shift': 'alt-shift-',
| |
| | |
| // submit buttons
| |
| 'wikEdLocalPreviewImg alt': 'Preview below',
| |
| 'wikEdLocalPreview title': 'Show preview below',
| |
| 'wikEdLocalDiffImg alt': 'Changes below',
| |
| 'wikEdLocalDiff title': 'Show current changes below',
| |
| 'wikEdHelpPageLink': ' | <a href="{wikEdHomeBaseUrl}wiki/User:Cacycle/wikEd_help" target="helpwindow">wikEd help</a>', // use full link without {wikEdHomeBaseUrl} if the page is not on the English Wikipedia
| |
| | |
| // preview and changes buttons, top
| |
| 'wikEdClose alt': 'Close',
| |
| 'wikEdClose title': 'Close preview box',
| |
| 'wikEdClose2 alt': 'Close',
| |
| 'wikEdClose2 title': 'Close preview box',
| |
| 'wikEdScrollToPreview2 alt': 'Scroll to preview',
| |
| 'wikEdScrollToPreview2 title': 'Scroll to preview field',
| |
| 'wikEdScrollToEdit2 alt': 'Scroll to edit',
| |
| 'wikEdScrollToEdit2 title': 'Scroll to edit field',
| |
| | |
| // preview and changes buttons, bottom
| |
| 'wikEdScrollToPreview3 alt': 'Scroll to preview',
| |
| 'wikEdScrollToPreview3 title': 'Scroll to preview field',
| |
| 'wikEdScrollToEdit3 alt': 'Scroll to edit',
| |
| 'wikEdScrollToEdit3 title': 'Scroll to edit field',
| |
| | |
| // preview field
| |
| 'wikEdPreviewLoading': '...',
| |
| 'diffNotLoaded': 'Error: Local diff script not installed.',
| |
| | |
| // formatting functions
| |
| 'image filename': 'filename',
| |
| 'image width': 'width',
| |
| 'table caption': 'caption',
| |
| 'table heading': 'heading',
| |
| 'table cell': 'cell',
| |
| 'redirect article link': 'article link',
| |
| | |
| // fixing functions
| |
| 'External links': 'External links',
| |
| 'See also': 'See also',
| |
| 'References': 'References',
| |
| | |
| // language specific wiki code
| |
| 'wikicode Image': 'Image',
| |
| 'wikicode File': 'File',
| |
| 'wikicode Media': 'Media',
| |
| 'wikicode Category': 'Category',
| |
| 'wikicode Template': 'Template',
| |
| 'wikEdReferencesSection': '\n== References ==\n\n<references />\n',
| |
| 'talk page': 'talk',
| |
| 'history page': 'history',
| |
| 'talk namespace': 'Talk',
| |
| 'talk namespace suffix': '$1_talk', // '$1_talk', '_talk', or 'talk_'
| |
| | |
| // hiding buttons, type
| |
| 'hideRef': 'REF',
| |
| 'hideTempl': 'TEMPL',
| |
| 'hideTable': '',
| |
| | |
| // hiding buttons, details
| |
| 'hideTableStart': 'Table',
| |
| 'hideTableEnd': 'Table end',
| |
| 'hideTableCaption': 'Caption',
| |
| 'hideTableRow': 'Row',
| |
| 'hideTableHeader': 'Header',
| |
| 'hideTableCell': 'Cell',
| |
| | |
| // shortened button texts
| |
| 'shortenedPreview': 'Preview',
| |
| 'shortenedChanges': 'Changes',
| |
| | |
| // link popup
| |
| 'followLink': '(ctrl-click)',
| |
| 'followLinkMac': '(cmd-click)',
| |
| 'redirect': ', redirect to:',
| |
| 'redlink': ' (page does not exist)',
| |
| | |
| // auto updating
| |
| 'wikEdGreasemonkeyAutoUpdate': 'wikEd Update:\n\nA new version of the Greasemonkey script "wikEd" is available.\n\n\nIt will be installed from:\n\n{updateURL}',
| |
| 'wikEdGreasemonkeyAutoUpdateBugfix': 'Important wikEd Bugfix:\n\nA bugfix for the Greasemonkey script "wikEd" is available.\n\n\nIt will be installed from:\n\n{updateURL}',
| |
| | |
| // highlighting popups
| |
| 'hyphenDash': 'Standard hyphen',
| |
| 'figureDash': 'Figure dash',
| |
| 'enDash': 'En dash',
| |
| 'emDash': 'Em dash',
| |
| 'barDash': 'Horizontal bar',
| |
| 'minusDash': 'Minus sign',
| |
| 'softHyphen': 'Soft hyphen',
| |
| 'tab': 'Tab',
| |
| 'enSpace': 'En space',
| |
| 'emSpace': 'Em space',
| |
| 'thinSpace': 'Thin space',
| |
| 'ideographicSpace': 'Ideographic space',
| |
| | |
| // highlighting
| |
| 'wikEdSignature3': 'Sign with username only',
| |
| 'wikEdSignature4': 'Sign with user name and date',
| |
| 'wikEdSignature5': 'Sign with date only',
| |
| | |
| // highlighting errors
| |
| 'wikEdErrorHtmlUnknown': 'Unsupported HTML tag',
| |
| 'wikEdErrorBoldItalic': 'Invalid bold / italic',
| |
| 'wikEdErrorWrongClose': 'Close tag does not match',
| |
| 'wikEdErrorNoOpen': 'Close tag has no match',
| |
| 'wikEdErrorNoHandler': 'No handler',
| |
| 'wikEdErrorNoClose': 'Open tag has no match',
| |
| 'wikEdErrorNewline': 'Open tag closed by new line',
| |
| 'wikEdErrorTemplHeading': 'Headings in templates are ignored',
| |
| 'wikEdErrorTemplParam': 'Template/parameter tags do not match',
| |
| 'wikEdErrorTemplParamAmbig': 'Template/parameter tags are ambiguous',
| |
| 'wikEdErrorCodeInLinkName': 'Wikicode in link name',
| |
| 'wikEdErrorCodeInTemplName': 'Wikicode in template name',
| |
| 'wikEdErrorCodeInParamName': 'Wikicode in template parameter name',
| |
| | |
| // highlighting image preview
| |
| 'wikEdFilePreview': 'Image preview',
| |
| | |
| // location search string functions
| |
| 'iconPage': 'All icons and images used by wikEd. Save page as <i>web page, complete</i> to download all files into one folder.<br><br>',
| |
| | |
| // duplicated message
| |
| 'clonedWarningsNote': 'Duplicated edit warnings (wikEd):'
| |
| | |
| }, wikEd.config.showMissingTranslations);
| |
| };
| |
| | |
| // define built-in user interface texts
| |
| wikEd.InitText();
| |
| | |
| // use local copies of images for testing (set to true in local copy of edit page), also defined in wikEdDiff.js
| |
| if (wikEd.config.useLocalImages === undefined) { wikEd.config.useLocalImages = false; }
| |
| | |
| // path to local wikEd images for testing, also defined in wikEdDiff.js
| |
| if (wikEd.config.imagePathLocal === undefined) { wikEd.config.imagePathLocal = 'file:///D:/wikEd/images/'; }
| |
| | |
| // path to wikEd images, also defined in wikEdDiff.js
| |
| if (wikEd.config.imagePath === undefined) { wikEd.config.imagePath = '//upload.wikimedia.org/wikipedia/commons/'; }
| |
| | |
| // wikEd image filenames, also defined in wikEdDiff.js
| |
| if (wikEd.config.image === undefined) { wikEd.config.image = {}; }
| |
| | |
| // wikEd.InitImages: define built-in image URLs
| |
| wikEd.InitImages = function () {
| |
| | |
| wikEd.InitImage(wikEd.config.image, {
| |
| 'barDash': '5/52/WikEd_bar_dash.png',
| |
| 'bold': '5/59/WikEd_bold.png',
| |
| 'browser': '0/07/WikEd_disabled.png',
| |
| 'bulletList': '6/62/WikEd_bullet_list.png',
| |
| 'case': 'a/aa/WikEd_case.png',
| |
| 'caseSensitive': '0/0d/WikEd_case_sensitive.png',
| |
| 'clearHistory': 'c/c8/WikEd_clear_history.png',
| |
| 'clearSummary': '2/2c/WikEd_clear_summary.png',
| |
| 'close': '9/97/WikEd_close.png',
| |
| 'closePasted': 'b/bc/WikEd_close_pasted.png',
| |
| 'closeToolbar': '1/1d/WikEd_close_toolbar.png',
| |
| 'ctrl': '1/10/WikEd_ctrl.png',
| |
| 'definitionList': 'f/f5/WikEd_definition_list.png',
| |
| 'diff': 'd/db/WikEd_diff.png',
| |
| 'disabled': '0/07/WikEd_disabled.png',
| |
| 'dummy': 'c/c5/WikEd_dummy.png',
| |
| 'emDash': '5/58/WikEd_em_dash.png',
| |
| 'emSpace': '3/3a/WikEd_em_space.png',
| |
| 'enDash': 'f/fc/WikEd_en_dash.png',
| |
| 'enSpace': '0/04/WikEd_en_space.png',
| |
| 'error': '3/3e/WikEd_error.png',
| |
| 'figureDash': '2/25/WikEd_figure_dash.png',
| |
| 'findAhead': '3/34/WikEd_find_ahead.png',
| |
| 'findAll': '7/75/WikEd_find_all.png',
| |
| 'findNext': 'a/ad/WikEd_find_next.png',
| |
| 'findPrev': 'f/f5/WikEd_find_prev.png',
| |
| 'fixAll': '8/86/WikEd_fix_all.png',
| |
| 'fixBasic': '3/30/WikEd_fix_basic.png',
| |
| 'fixCaps': '0/00/WikEd_fix_caps.png',
| |
| 'fixUnicode': 'd/d4/WikEd_fix_unicode.png',
| |
| 'fixRedirect': 'f/f8/WikEd_fix_redirect.png',
| |
| 'fixChem': 'e/e7/WikEd_fix_chem.png',
| |
| 'fixDash': 'e/e5/WikEd_fix_dash.png',
| |
| 'fixHtml': '0/05/WikEd_fix_html.png',
| |
| 'fixMath': '3/3f/WikEd_fix_math.png',
| |
| 'fixPunct': 'd/db/WikEd_fix_punct.png',
| |
| 'fixRegExTypo': '9/94/WikEd_fix_reg-ex-typo.png',
| |
| 'fixUnits': '6/69/WikEd_fix_units.png',
| |
| 'textZoom': '7/71/WikEd_font_size.png',
| |
| 'fullScreen': 'd/d3/WikEd_fullscreen.png',
| |
| 'getFind': '9/96/WikEd_get_selection.png',
| |
| 'grip': 'a/ad/WikEd_grip.png',
| |
| 'gripHidden': 'a/a8/WikEd_grip_hidden.png',
| |
| 'heading': '0/07/WikEd_heading.png',
| |
| 'highlightSyntax': '6/67/WikEd_syntax.png',
| |
| 'ideographicSpace': 'c/c6/WikEd_ideographic_space.png',
| |
| 'image': '3/37/WikEd_image.png',
| |
| 'incompatible': '3/3e/WikEd_error.png',
| |
| 'indentList': '7/7a/WikEd_indent_list.png',
| |
| 'italic': 'd/d4/WikEd_italic.png',
| |
| 'jumpNext': '5/54/WikEd_jump_next.png',
| |
| 'logo': '6/67/WikEd_logo.png',
| |
| 'minusDash': 'b/ba/WikEd_minus_dash.png',
| |
| 'noFile': '8/88/WikEd_no_file.png',
| |
| 'nowiki': '5/5a/WikEd_nowiki.png',
| |
| 'numberList': '3/3b/WikEd_number_list.png',
| |
| 'jumpPrev': 'c/c7/WikEd_jump_prev.png',
| |
| 'preview': '3/31/WikEd_preview.png',
| |
| 'redirect': 'f/fa/WikEd_redirect.png',
| |
| 'redo': 'd/d7/WikEd_redo.png',
| |
| 'ref': 'b/ba/WikEd_ref.png',
| |
| 'refHide': '0/0b/WikEd_ref_hide.png',
| |
| 'references': '6/66/WikEd_references.png',
| |
| 'sign': 'd/d5/WikEd_sign.png',
| |
| 'redoAll': '2/2d/WikEd_redo_all.png',
| |
| 'resizeGrip': 'e/e1/WikEd_resize_grip.png',
| |
| 'regExp': '6/6a/WikEd_regexp.png',
| |
| 'replaceAll': '2/2a/WikEd_replace_all.png',
| |
| 'replaceNext': 'b/b0/WikEd_replace_next.png',
| |
| 'replacePrev': 'a/a1/WikEd_replace_prev.png',
| |
| 'scrollToEdit': '1/13/WikEd_align_top.png',
| |
| 'scrollToPreview': '3/37/WikEd_align_preview.png',
| |
| 'scrollToEditDown': 'a/a8/WikEd_align_down.png',
| |
| 'scrollToPreviewDown': '5/58/WikEd_align_preview_down.png',
| |
| 'softHyphen': 'c/c7/WikEd_soft_hyphen.png',
| |
| 'sort': '7/7c/WikEd_sort.png',
| |
| 'source': '0/02/WikEd_source.png',
| |
| 'strikethrough': '0/06/WikEd_strikethrough.png',
| |
| 'subscript': '9/9e/WikEd_subscript.png',
| |
| 'superscript': 'b/bf/WikEd_superscript.png',
| |
| 'tab': 'e/e7/WikEd_tab.png',
| |
| 'table': 'b/bd/WikEd_table.png',
| |
| 'tableMode': 'e/ee/WikEd_table_edit.png',
| |
| 'testVersion': '3/3e/WikEd_error.png',
| |
| 'textify': 'c/cd/WikEd_textify.png',
| |
| 'thinSpace': '5/56/WikEd_thin_space.png',
| |
| 'underline': '2/21/WikEd_underline.png',
| |
| 'undo': 'e/e6/WikEd_undo.png',
| |
| 'undoAll': '0/08/WikEd_undo_all.png',
| |
| 'unknown': '8/8a/WikEd_unknown.png',
| |
| 'useWikEd': '6/67/WikEd_logo.png',
| |
| 'using': 'e/e0/WikEd_using.png',
| |
| 'webLink': '1/16/WikEd_weblink.png',
| |
| 'wikify': '9/9f/WikEd_wikify.png',
| |
| 'wikiLink': '2/21/WikEd_wikilink.png'
| |
| });
| |
| };
| |
| | |
| // edit-frame css rules
| |
| if (wikEd.config.frameCSS === undefined) { wikEd.config.frameCSS = {}; }
| |
| | |
| // wikEd.InitFrameCSS: define built-in edit frame css
| |
| wikEd.InitFrameCSS = function () {
| |
| wikEd.InitObject(wikEd.config.frameCSS, {
| |
| | |
| // frame
| |
| '.wikEdFrameHtml': 'height: 100%; width: 100%; padding: 0; margin: 0; background: transparent; background-image: url({wikEdImage:resizeGrip}); background-attachment: fixed; background-position: right bottom; background-repeat: no-repeat; line-height: normal;',
| |
| '.wikEdFrameBodyPlain': 'height: auto; min-height: 100%; width: auto; background: transparent; margin: 0; padding: 0; padding-left: 0.25em; overflow: auto; font-family: monospace;',
| |
| '.wikEdFrameBodySyntax': 'height: auto; min-height: 100%; width: auto; background: transparent; margin: 0; padding: 0; padding-left: 0.25em; overflow: auto; font-family: monospace;',
| |
| '.wikEdFrameBodyNewbie': 'height: auto; min-height: 100%; width: auto; background: transparent; margin: 0; padding: 0; padding-left: 0.25em; overflow: auto; font-family: monospace;',
| |
| | |
| // reselection / scroll to selection
| |
| '.wikEdScrollLineHeight': 'position: absolute;',
| |
| | |
| // syntax highlighting
| |
| '.wikEdError': 'background-image: url({wikEdImage:unknown}); color: black; font-weight: normal; font-style: normal; text-decoration: none;',
| |
| '.wikEdHighlightError': 'color: black; background: #faa;',
| |
| | |
| '.wikEdHtml': 'background: #e8e8e8;',
| |
| '.wikEdHtmlTag': 'color: #777;',
| |
| '.wikEdHtmlTagButtons': 'color: #777;',
| |
| '.wikEdHtmlUnknown': 'background-image: url({wikEdImage:unknown}); color: black; font-weight: normal; font-style: normal;',
| |
| '.wikEdParsingNote': 'border: 1px outset #fcc; padding: 0 0.5em 0 0.5em; margin: 0 0.25em 0 0.25em; color: black; background: #fcc; font-weight: normal; font-size: smaller; font-style: normal; text-decoration: none; font-family: sans-serif;',
| |
| | |
| '.wikEdSubscript': 'position: relative; top: 0.3em;',
| |
| '.wikEdSuperscript': 'position: relative; top: -0.3em;',
| |
| '.wikEdBold': 'font-weight: bold;',
| |
| '.wikEdItalic': 'font-style: italic;',
| |
| | |
| '.wikEdComment': 'background: #fff0d0; color: black; font-weight: normal; font-style: normal; text-decoration: none;',
| |
| '.wikEdKeep': '',
| |
| '.wikEdDel': 'text-decoration: line-through;',
| |
| '.wikEdIns': 'text-decoration: underline;',
| |
| | |
| '.wikEdPre': 'background: #f8e8e0;',
| |
| '.wikEdMath': 'background: #e8f0ff;',
| |
| '.wikEdScore': 'background: #fff8e0;',
| |
| '.wikEdNowiki': 'background: #f8e8e8;',
| |
| | |
| // horizontal rule
| |
| '.wikEdHr': 'background: #666; color: #ffffff;',
| |
| | |
| // wiki code
| |
| '.wikEdWiki': 'color: #777;',
| |
| '.wikEdRedir': 'color: #c00; font-weight: bold;',
| |
| '.wikEdSignature': 'color: #f00; font-weight: bold;',
| |
| '.wikEdMagic': 'color: #666; font-weight: bold; background: #e8e8e8;',
| |
| '.wikEdParserFunct': 'color: #f00;',
| |
| | |
| // headings
| |
| '.wikEdFrameBodySyntax .wikEdHeading': 'color: #000; font-weight: bold;',
| |
| '.wikEdFrameBodySyntax .wikEdHeadingWP': 'color: #000; font-weight: bold; background: #e8e8e8;',
| |
| '.wikEdFrameBodyNewbie .wikEdHeading': 'color: #000; font-weight: bold; color: #000; background: #eee; padding: 0 0.25em; border: 1px solid #ddd; font-size: larger; line-height: 1.5;',
| |
| '.wikEdFrameBodyNewbie .wikEdHeadingWP': 'color: #000; font-weight: bold; color: #000; background: #ddd; padding: 0 0.25em; border: 1px solid #ccc; font-size: larger; line-height: 1.5;',
| |
| | |
| // tables
| |
| '.wikEdTableBlock': '',
| |
| | |
| '.wikEdTableCode': 'color: #888; background: #ccc;',
| |
| '.wikEdTableTag': 'background: #ccc;',
| |
| '.wikEdTableCaption': 'color: #000; background: #fff;',
| |
| '.wikEdTableRow': 'color: #000; background: #ccc;',
| |
| '.wikEdTableHeader': 'color: #000; background: #e8e8e8;',
| |
| '.wikEdTableCell': 'color: #000; background: #f0f0f0;',
| |
| | |
| '.wikEdFrameBodyNewbie .wikEdTableCode': 'color: #888; background: transparent;',
| |
| '.wikEdFrameBodyNewbie .wikEdTableTag, .wikEdFrameBodyNewbie .wikEdTableTagBR': 'background: #d8d8d8;',
| |
| '.wikEdFrameBodyNewbie .wikEdTableCaption, .wikEdFrameBodyNewbie .wikEdTableCaptionBR': 'color: #000; background: #fff;',
| |
| '.wikEdFrameBodyNewbie .wikEdTableRow, .wikEdFrameBodyNewbie .wikEdTableRowBR': 'color: #000; background: #d8d8d8;',
| |
| '.wikEdFrameBodyNewbie .wikEdTableHeader, .wikEdFrameBodyNewbie .wikEdTableHeaderBR': 'color: #000; background: #f2f2f2;',
| |
| '.wikEdFrameBodyNewbie .wikEdTableCell, .wikEdFrameBodyNewbie .wikEdTableCellBR': 'color: #000; background: #fbfbfb;',
| |
| | |
| 'br.wikEdTableBR': 'display: none;',
| |
| '.wikEdTableTagAttrib .wikEdTableCode, .wikEdTableCaptionAttrib .wikEdTableCode, .wikEdTableRowAttrib .wikEdTableCode, .wikEdTableHeaderAttrib .wikEdTableCode, .wikEdTableCellAttrib .wikEdTableCode':
| |
| 'background: transparent;',
| |
| '.wikEdTableTagAttrib, .wikEdTableRowAttrib': 'color: #666;',
| |
| '.wikEdTableCaptionAttrib, .wikEdTableHeaderAttrib, .wikEdTableCellAttrib': 'color: #888;',
| |
| | |
| 'table.wikEdTableMode': 'border: 1px solid #aaa; background: #d8d8d8; color: #000; border-collapse: separate; border-spacing: 0.25em 2px; margin: 0.5em 0;',
| |
| 'td.wikEdTableCaption, td.wikEdTableHeader, td.wikEdTableCell, td.wikEdTableCaptionBR, td.wikEdTableHeaderBR, td.wikEdTableCellBR': 'border: 1px solid #aaa;',
| |
| 'td.wikEdTableTag, td.wikEdTableRow, td.wikEdTableTagBR, td.wikEdTableRowBR': 'border: none; border-spacing: 0;',
| |
| | |
| // list
| |
| '.wikEdList': 'color: #000; background: #e8e8e8;',
| |
| '.wikEdListTag': 'font-weight: bold; font-family: monospace; vertical-align: text-bottom;',
| |
| | |
| // space-pre
| |
| '.wikEdSpace': 'color: #000; background: #e8e8e8;',
| |
| '.wikEdSpaceTag': 'background: #e8e8e8;',
| |
| | |
| // links
| |
| '.wikEdLinkTag': 'color: #777;',
| |
| | |
| // wiki links
| |
| '.wikEdLink': 'color: #00a;',
| |
| '.wikEdLinkCrossNs': 'background: #ddd; color: #00a;',
| |
| '.wikEdLinkInter': 'background: #ddd;',
| |
| '.wikEdLinkNs': 'background: #ddd;',
| |
| '.wikEdLinkName': 'font-weight: bold;',
| |
| '.wikEdLinkTarget': '',
| |
| '.wikEdLinkText': 'font-weight: bold;',
| |
| | |
| '.wikEdPMID': 'color: #00e;',
| |
| '.wikEdISBN': 'color: #00e;',
| |
| '.wikEdLinkInter span': 'font-weight: normal;',
| |
| 'span.wikEdLinkText:hover': 'text-decoration: underline;',
| |
| 'span.wikEdLinkName:hover': 'text-decoration: underline;',
| |
| 'span.wikEdPMID:hover': 'text-decoration: underline;',
| |
| 'span.wikEdISBN:hover': 'text-decoration: underline;',
| |
| | |
| // external links
| |
| '.wikEdURL': '',
| |
| '.wikEdURLName': 'color: #00e; font-weight: bold;',
| |
| '.wikEdURLTarget': 'color: #00e;',
| |
| '.wikEdURLText': 'color: #00e; font-weight: bold;',
| |
| 'span.wikEdURLName:hover': 'text-decoration: underline;',
| |
| 'span.wikEdURLText:hover': 'text-decoration: underline;',
| |
| | |
| // files
| |
| '.wikEdFile': 'background: rgb(213, 255, 176); background: rgba(199, 255, 149, 0.75); color: #00e;',
| |
| '.wikEdFrameBodyNewbie .wikEdFile':
| |
| 'background: rgb(213, 255, 176); padding: 0.25em; margin-right: 0.25em; display: inline-block; border: 1px solid #082; margin: 1px;',
| |
| '.wikEdFileTag': 'color: #444;',
| |
| '.wikEdFileName': '',
| |
| '.wikEdFileParam': 'color: #666;',
| |
| '.wikEdFileCaption': 'color: #000;',
| |
| '.wikEdFilePreview': 'border: 1px solid #c0ffa0; background: rgb(192, 192, 192) no-repeat 50% 50%; background: rgba(192, 192, 192, 0.75); position: absolute; right: 0; margin: 0.1em 0.25em; z-index: -1; border: none; padding: 1px; display: block;',
| |
| '.wikEdFrameBodyNewbie .wikEdFilePreview':
| |
| 'position: static; float: right; clear: both; background: transparent; padding: 0; ',
| |
| | |
| // categories
| |
| '.wikEdCat': 'background: #ccc; color: #00e;',
| |
| '.wikEdCatName': '',
| |
| '.wikEdCat .wikEdLinkInter': 'color: #000; background: #aaa;',
| |
| '.wikEdCat .wikEdLinkNs': 'color: #000; background: #ccc;',
| |
| '.wikEdCat .wikEdLinkText': 'color: #000; font-weight: normal;',
| |
| '.wikEdCat span.wikEdLinkText:hover': 'text-decoration: none;',
| |
| | |
| // refs
| |
| '.wikEdFrameBodySyntax .wikEdRefContainer': 'display: block; position: fixed; left: -10000em;',
| |
| | |
| '.wikEdRefContainer': 'position: relative;',
| |
| '.wikEdRefContainer button': 'padding: 0.1em; position: relative;',
| |
| | |
| '.wikEdRefButton': 'border: 1px solid; border-color: #e8e8e8 #444 #444 #e8e8e8; background: #d8d4d0;',
| |
| '.wikEdRefButtonShow': 'border: 1px solid; border-color: #000 #e8e8e8 #e8e8e8 #000; background: #c8c4c0;',
| |
| '.wikEdRef, .wikEdRefShow': 'background: #e8e8e8; color: #666;',
| |
| | |
| '.wikEdReferences': 'background: #eee;',
| |
| '.wikEdReferencesTag': 'color: #444;',
| |
| '.wikEdFrameBodyNewbie .wikEdReferences':
| |
| 'background: #eee; padding: 0.25em; display: inline-block; border: 1px solid black; vertical-align: middle;',
| |
| '.wikEdRefList': 'background: #eee;',
| |
| '.wikEdFrameBodyNewbie .wikEdRefList':
| |
| 'background: #e8e8e8; padding: 0.25em; display: inline-block; border: 1px solid black; vertical-align: middle;',
| |
| '.wikEdRefName': 'color: #000;',
| |
| | |
| // templates
| |
| '.wikEdFrameBodySyntax .wikEdTemplContainer': 'display: block; position: fixed; left: -10000em;',
| |
| '.wikEdTemplContainer': 'position: relative;',
| |
| '.wikEdTemplContainer button': 'padding: 0.1em; position: relative;',
| |
| '.wikEdTemplButton': 'border: 1px solid; border-color: #e8e8e8 #444 #444 #e8e8e8; background: #d8d4d0;',
| |
| '.wikEdTemplButtonShow': 'border: 1px solid; border-color: #000 #e8e8e8 #e8e8e8 #000; background: #c8c4c0;',
| |
| | |
| '.wikEdTempl, .wikEdTemplShow': 'background: #e8e8e8; color: #509;',
| |
| '.wikEdTemplNs, .wikEdTemplNsShow': 'background: #ccc;',
| |
| | |
| '.wikEdTemplTag': 'color: #777;',
| |
| '.wikEdTemplName': '',
| |
| '.wikEdTemplParam': 'color: #666;',
| |
| '.wikEdTemplMod': 'color: #f00; font-weight: bold;',
| |
| | |
| '.wikEdParam': 'background: #e8e8e8;',
| |
| '.wikEdParamName': 'color: #900;',
| |
| '.wikEdParamDefault': 'color: #000;',
| |
| | |
| // missing article for links, cats, refs, and templates
| |
| '.wikEdRedlink': 'color: #c00;',
| |
| | |
| // character entities
| |
| '.wikEdFrameBodySyntax .wikEdCharEntityContainer': 'display: block; position: fixed; left: -10000em;',
| |
| '.wikEdCharEntityContainer': 'position: relative; right: -0.25em;',
| |
| '.wikEdCharEntityContainer button':
| |
| 'padding: 0; color: #000; font-weight: normal; font-family: monospace; position: relative; right: 0.25em; line-height: 0.75em;',
| |
| '.wikEdCharEntityButton':
| |
| 'border: 1px solid; border-color: #e8e8e8 #444 #444 #e8e8e8; background: #d8d4d0; border-color: rgba(255, 255, 255, 0.75) rgba(64, 64, 64, 0.5) rgba(64, 64, 64, 0.5) rgba(255, 255, 255, 0.75); background: rgba(192, 192, 192, 0.3);',
| |
| '.wikEdCharEntityButtonShow':
| |
| 'border: 1px solid; border-color: #000 #e8e8e8 #e8e8e8 #000; background: #c8c4c0; border-color: rgba(64, 64, 64, 0.5) rgba(255, 255, 255, 0.75) rgba(255, 255, 255, 0.75) rgba(64, 64, 64, 0.5); background: rgba(192, 192, 192, 0.3);',
| |
| '.wikEdCharEntity, .wikEdCharEntityShow':
| |
| 'color: #000; background: #e8e8e8;',
| |
| | |
| // tables
| |
| '.wikEdFrameBodySyntax .wikEdTableContainer': 'display: block; position: fixed; left: -10000em;',
| |
| '.wikEdTableContainer': 'position: relative;',
| |
| '.wikEdTableContainer button':
| |
| 'padding: 0.1em; position: relative; vertical-align: top;',
| |
| '.wikEdTableButton': 'border: 1px solid; border-color: #e8e8e8 #444 #444 #e8e8e8; background: #d8d4d0;',
| |
| '.wikEdTableButtonShow':
| |
| 'border: 1px solid; border-color: #000 #e8e8e8 #e8e8e8 #000; background: #c8c4c0;',
| |
| '.wikEdTable, .wikEdTableShow': '',
| |
| '.wikEdTableButton:before, .wikEdTableButtonShow:before':
| |
| 'line-height: 0.75em; font-size: 65%; color: #000; font-family: sans-serif;',
| |
| | |
| // links in references and templates
| |
| '.wikEdFrameBodySyntax .wikEdRef .wikEdURLName, .wikEdFrameBodySyntax .wikEdTempl .wikEdURLName, .wikEdFrameBodySyntax .wikEdRef .wikEdURLTarget, .wikEdFrameBodySyntax .wikEdTempl .wikEdURLTarget, .wikEdFrameBodySyntax .wikEdRef .wikEdURLText, .wikEdFrameBodySyntax .wikEdTempl .wikEdURLText': 'color: #66f; font-weight: normal;',
| |
| '.wikEdFrameBodySyntax .wikEdRef .wikEdLinkName, .wikEdFrameBodySyntax .wikEdTempl .wikEdLinkName, .wikEdFrameBodySyntax .wikEdRef .wikEdLinkTarget, .wikEdFrameBodySyntax .wikEdTempl .wikEdLinkTarget, .wikEdFrameBodySyntax .wikEdRef .wikEdLinkText, .wikEdFrameBodySyntax .wikEdTempl .wikEdLinkText': 'color: #66f; font-weight: normal;',
| |
| | |
| // wikEdFrameBodyNewbie ref and template hiding
| |
| '.wikEdFrameBodyNewbie .wikEdRefContainer + .wikEdRef, .wikEdFrameBodyNewbie .wikEdTemplContainer + .wikEdTempl, .wikEdFrameBodyNewbie .wikEdTemplContainer + .wikEdTemplNs':
| |
| 'position: fixed; left: -10000em;',
| |
| '.wikEdFrameBodyNewbie .wikEdRefContainer + .wikEdRefShow, .wikEdFrameBodyNewbie .wikEdTemplContainer + .wikEdTemplShow, .wikEdFrameBodyNewbie .wikEdTemplContainer + .wikEdTemplNsShow':
| |
| 'display: block; position: relative; color: #000; background: #f8f8f8; font-weight: normal; border: 1px solid; border-color: #444 #ccc #ccc #444; padding: 0.5em 0.25em;',
| |
| '.wikEdFrameBodyNewbie .wikEdRefButton:before, .wikEdFrameBodyNewbie .wikEdTemplButton:before, .wikEdFrameBodyNewbie .wikEdTableButton:before, .wikEdFrameBodyNewbie .wikEdRefButtonShow:before, .wikEdFrameBodyNewbie .wikEdTemplButtonShow:before, .wikEdFrameBodyNewbie .wikEdTableButtonShow:before':
| |
| 'line-height: 0.75em; font-size: 65%; color: #000; font-family: sans-serif;',
| |
| '.wikEdRefButton:before, .wikEdTemplButton:before, .wikEdRefButtonShow:before, .wikEdTemplButtonShow:before':
| |
| 'line-height: 0.75em; font-size: 65%; color: #000; font-family: sans-serif;',
| |
| '.wikEdFrameBodyNewbie .wikEdRefButton:before, .wikEdFrameBodyNewbie .wikEdRefButtonShow:before':
| |
| 'content: "{wikEdText:hideRef}"',
| |
| '.wikEdFrameBodyNewbie .wikEdTemplButton:before, .wikEdFrameBodyNewbie .wikEdTemplButtonShow:before':
| |
| 'content: "{wikEdText:hideTempl}";',
| |
| | |
| // wikEdFrameBodyNewbie char entity hiding
| |
| '.wikEdFrameBodyNewbie .wikEdCharEntity':
| |
| 'position: fixed; left: -10000em;',
| |
| '.wikEdFrameBodyNewbie .wikEdCharEntityShow':
| |
| 'display: inline; position: relative; color: #000; background: #f8f8f8; border: 1px solid; font-weight: normal; background: rgba(192, 192, 192, 0.3); border: 1px inset;',
| |
| '.wikEdCharEntityButton:before, .wikEdCharEntityButtonShow:before':
| |
| '',
| |
| | |
| // wikEdFrameBodyNewbie table hiding
| |
| '.wikEdFrameBodyNewbie .wikEdTableContainer + .wikEdTable':
| |
| 'position: fixed; left: -10000em;',
| |
| '.wikEdFrameBodyNewbie .wikEdTableContainer + .wikEdTableShow':
| |
| 'display: inline-block; position: relative; color: #000; font-weight: normal; background: rgba(255, 255, 255, 0.2); border: 1px inset;',
| |
| '.wikEdFrameBodyNewbie .wikEdTableButton:before, .wikEdFrameBodyNewbie .wikEdTableButtonShow:before':
| |
| 'content: "{wikEdText:hideTable}";',
| |
| | |
| // insert wikicode here
| |
| '.wikEdInsertHere': 'background: orange; font-style: italic;',
| |
| | |
| // colors
| |
| '.wikEdColorsLight': 'color: black;',
| |
| '.wikEdColorsDark': 'color: white;',
| |
| | |
| // dashes
| |
| '.wikEdFigureDash': 'background-image: url({wikEdImage:figureDash}); background-position: top right; background-repeat: no-repeat;',
| |
| '.wikEdEmDash': 'background-image: url({wikEdImage:emDash}); background-position: top left; background-repeat: no-repeat;',
| |
| '.wikEdEnDash': 'background-image: url({wikEdImage:enDash}); background-position: top left; background-repeat: no-repeat;',
| |
| '.wikEdBarDash': 'background-image: url({wikEdImage:barDash}); background-position: top left; background-repeat: no-repeat;',
| |
| '.wikEdMinusDash': 'background-image: url({wikEdImage:minusDash}); background-position: top left; background-repeat: no-repeat;',
| |
| '.wikEdSoftHyphen': 'background-image: url({wikEdImage:softHyphen}); background-position: top left; background-repeat: no-repeat;',
| |
| '.wikEdSoftHyphen:before': 'content: \'\xa0\'',
| |
| '.wikEdHyphenDash': '',
| |
| | |
| // dashes, invisibles, control chars, and strange spaces
| |
| '.wikEdTab': 'white-space: pre; background-image: url({wikEdImage:tab}); background-position: bottom right; background-repeat: no-repeat;',
| |
| '.wikEdTabPlain': 'white-space: pre;',
| |
| '.wikEdCtrl': 'white-space: pre; background-image: url({wikEdImage:ctrl}); background-position: center center; background-repeat: no-repeat; margin: 0 1px;',
| |
| '.wikEdCtrl:before': 'content: \'\xa0\'',
| |
| | |
| '.wikEdEmSpace': 'background-image: url({wikEdImage:emSpace}); background-position: bottom left; background-repeat: no-repeat; margin: 0 1px; padding: 0 3px;',
| |
| '.wikEdEnSpace': 'background-image: url({wikEdImage:enSpace}); background-position: bottom left; background-repeat: no-repeat; margin: 0 1px; padding: 0 3px;',
| |
| '.wikEdThinSpace': 'background-image: url({wikEdImage:thinSpace}); background-position: bottom left; background-repeat: no-repeat; margin: 0 1px; padding: 0 3px;',
| |
| '.wikEdIdeographicSpace': 'background-image: url({wikEdImage:ideographicSpace}); background-position: bottom left; background-repeat: no-repeat; margin: 0 1px; padding: 0 3px;'
| |
| });
| |
| };
| |
| | |
| // main window css rules
| |
| if (wikEd.config.mainCSS === undefined) { wikEd.config.mainCSS = {}; }
| |
| | |
| // wikEd.InitMainCSS: define built-in main window css
| |
| wikEd.InitMainCSS = function () {
| |
| wikEd.InitObject(wikEd.config.mainCSS, {
| |
| | |
| // logo
| |
| '.wikEdLogoList': 'list-style-type: none;',
| |
| '.wikEdLogo': 'margin-left: 0.5em;',
| |
| '.wikEdLogoFallBack': 'margin: 0.25em 0 0.25em 0.5em; float: right;'
| |
| });
| |
| };
| |
| | |
| // main window css rules for edit pages only
| |
| if (wikEd.config.mainEditCSS === undefined) { wikEd.config.mainEditCSS = {}; }
| |
| | |
| // wikEd.InitMainEditCSS: define built-in main window css for edit pages only
| |
| wikEd.InitMainEditCSS = function () {
| |
| wikEd.InitObject(wikEd.config.mainEditCSS, {
| |
| | |
| // combo input box
| |
| '.wikEdCombo': '',
| |
| | |
| // wikEd button areas
| |
| | |
| // button bar margins
| |
| '.wikEdButtonBarFormat': 'margin: 0 8px 3px 1px; float: left;',
| |
| '.wikEdButtonBarTextify': 'margin: 0 8px 3px 1px; float: left;',
| |
| '.wikEdButtonBarCustom1': 'margin: 0 8px 3px 1px; float: left;',
| |
| '.wikEdButtonBarFind': 'margin: 0 8px 3px 1px; float: left;',
| |
| '.wikEdButtonBarFix': 'margin: 0 8px 3px 1px; float: left;',
| |
| '.wikEdButtonBarCustom2': 'margin: 0 8px 3px 1px; float: left;',
| |
| '.wikEdButtonBarControl': 'margin: 0 1px 3px 0; float: right;',
| |
| '.wikEdButtonBarPreview': 'margin: 0.4em 0.75em 0 0; float: right;',
| |
| '.wikEdButtonBarPreviewFull': 'margin: -0.2em 0 0 0.6em; float: right;',
| |
| '.wikEdButtonBarPreview2': 'margin: 0.2em 0 0.4em 0; float: right;',
| |
| '.wikEdButtonBarJump': 'margin: 0 0 0 0.6em; float: right;',
| |
| '.wikEdButtonBarPasted': 'position: absolute;',
| |
| | |
| // button bar inner wrapper: border
| |
| '.wikEdButtonBarInnerWrapperVisible': '',
| |
| '.wikEdButtonBarInnerWrapperHidden': '',
| |
| | |
| // button bar grip wrapper
| |
| '.wikEdButtonBarGripWrapperVisible': 'float: left; border: 1px solid; border-color: #e4e0dc #c4c0bc #c4c0bc #e4e0dc;',
| |
| '.wikEdButtonBarGripWrapperHidden': 'float: left; border: 1px solid; border-color: #e4e0dc #c4c0bc #c4c0bc #e4e0dc;',
| |
| | |
| // button bar buttons wrapper
| |
| '.wikEdButtonBarButtonsWrapperVisible, .wikEdButtonBarButtonsWrapperHidden': 'float: left; background: #d4d0cc; border: 1px solid; border-color: #e4e0dc #c4c0bc #c4c0bc #e4e0dc; background: #d4d0cc; z-index: 4;',
| |
| | |
| // button bar grip
| |
| '.wikEdButtonBarGrip': 'background: #d4d0cc; cursor: pointer; background-repeat: no-repeat; background-position: center;',
| |
| '.wikEdButtonBarGripWrapperVisible .wikEdButtonBarGrip': 'background-image: url({wikEdImage:grip});',
| |
| '.wikEdButtonBarGripWrapperHidden .wikEdButtonBarGrip': 'background-image: url({wikEdImage:gripHidden});',
| |
| | |
| // button bar buttons
| |
| '.wikEdButtonsFormat': 'padding: 2px 2px 0 0px;',
| |
| '.wikEdButtonsTextify': 'padding: 2px 2px 0 0px;',
| |
| '.wikEdButtonsCustom1': 'padding: 2px 2px 0 0px;',
| |
| '.wikEdButtonsFind': 'padding: 2px 2px 0 0px;',
| |
| '.wikEdButtonsFix': 'padding: 2px 2px 0 0px;',
| |
| '.wikEdButtonsCustom2': 'padding: 2px 2px 0 0px;',
| |
| '.wikEdButtonsControl': 'padding: 2px 2px 0 1px;',
| |
| '.wikEdButtonsPasted': 'padding: 2px; border: 1px solid; border-color: #e0e0e0 #808080 #808080 #e0e0e0; background: rgba(212, 208, 204, 0.6);',
| |
| '.wikEdButtonsPasted:hover': 'background-color: #e4e0dc;',
| |
| '.wikEdButtonsPasted img': 'border-color: rgba(0, 0, 0, 0) !important; background-color: rgba(0, 0, 0, 0);',
| |
| '.wikEdButtonsPasted img:hover': 'background-color: #e4e0dc;',
| |
| '.wikEdButtonsPreview': 'padding: 2px; border: 1px solid; border-color: #e0e0e0 #808080 #808080 #e0e0e0; background: #d4d0cc;',
| |
| '.wikEdButtonsPreviewFull': 'padding: 2px; border: 1px solid; border-color: #e0e0e0 #808080 #808080 #e0e0e0; background: #d4d0cc;',
| |
| '.wikEdButtonsPreview2': 'padding: 2px; border: 1px solid; border-color: #e0e0e0 #808080 #808080 #e0e0e0; background: #d4d0cc;',
| |
| '.wikEdButtonsJump': 'border: 1px solid; border-color: #e0e0e0 #808080 #808080 #e0e0e0; background: #d4d0cc;',
| |
| | |
| // wikEd buttons (!important for devmo skin)
| |
| '.wikEdButton': 'vertical-align: text-top; font-size: small; text-decoration: underline; margin: 1px 2px; padding: 0; background: #d4d0cc; border: 1px #d4d0cc solid !important; cursor: pointer;',
| |
| '.wikEdButton:hover': 'background: #e4e0dc; border: 1px outset !important; cursor: pointer;',
| |
| '.wikEdButton:active': 'background: #e4e0dc; border: 1px inset !important; cursor: pointer;',
| |
| '.wikEdButtonSolo': 'display: block; font-size: small; text-decoration: underline; padding: 0.2em; background: #d4d0cc; border: 1px #d4d0cc solid !important; cursor: pointer;',
| |
| '.wikEdButtonSolo:hover': 'background: #e4e0dc; border: 1px outset !important; cursor: pointer;',
| |
| '.wikEdButtonChecked': 'vertical-align: text-top; font-size: small; text-decoration: none; margin: 1px 2px; padding: 0; background: #ccc8c3; border: 1px solid !important; border-color: black white white black !important; cursor: pointer;',
| |
| '.wikEdButtonUnchecked': 'vertical-align: text-top; font-size: small; text-decoration: none; margin: 1px 2px; padding: 0; background: #ddd8d3; border: 1px solid !important; border-color: white black black white !important; cursor: pointer;',
| |
| '.wikEdButtonPressed': 'vertical-align: text-top; font-size: small; text-decoration: none; margin: 1px 2px; padding: 0; background: #ccc8c3; border: 1px solid !important; border-color: black white white black !important; cursor: wait;',
| |
| '.wikEdButtonInactive': 'vertical-align: text-top; font-size: small; text-decoration: underline; margin: 1px 2px; padding: 0; background: rgba(160, 160, 160, 0.5) !important; border: 1px #b0b0b0 solid !important; cursor: not-allowed',
| |
| '.wikEdLocalPreview': 'vertical-align: top; margin: 0 0.33em 0 0.15em; padding: 0;',
| |
| '.wikEdLocalDiff': 'vertical-align: top; margin: 0 0.33em 0 0.15em; padding: 0;',
| |
| 'input#wpDiff, input#wpPreview': 'margin-right: 0;', // monobook fix
| |
| '.wikEdButtonDummy': 'vertical-align: text-top; margin: 1px 2px; padding: 1px; background: #d4d0cc;',
| |
| | |
| // preview box
| |
| '.wikEdPreviewArticle': 'margin: 0.75em 0 0.2em; padding: 0.5em; border: 1px solid #c0c0c0; background: #faf8f6;',
| |
| '.wikEdPreviewDiff': 'margin: 0.75em 0 0.5em;',
| |
| '.wikEdPreviewRefs': 'margin-top: 1.5em; padding-top: 1em; border-top: 1px solid #a0a0a0;',
| |
| '.wikEdPreviewDiffError': 'padding: 0.5em; font-weight: bold; color: red; text-align: center;',
| |
| | |
| // find and replace fields
| |
| '.wikEdFindComboInput, .wikEdReplaceComboInput': 'position: relative; margin: 0 5px; top: -1px; white-space: nowrap; vertical-align: bottom; padding: 0; line-height: 20px; font-size: 13px;',
| |
| '#wikEdFindText, #wikEdReplaceText': 'padding: 0; font-family: monospace; margin: 0; position: absolute; left: 0; top: 0; z-index: 2; vertical-align: bottom; width: 170px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; height: 18px;',
| |
| '#wikEdFindSelect, #wikEdReplaceSelect': 'font-family: monospace; margin: 0; position: relative; left: 0; top: 0; z-index: 1; vertical-align: bottom; width: 190px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; height: 18px;',
| |
| | |
| // summary field
| |
| '.wikEdSummaryComboInput': 'position: relative; margin: 0 0 0 2px; top: 0; white-space: nowrap; padding: 0; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; font-size: 13px;',
| |
| '.wikEdSummaryText': 'padding: 0 2px !important; margin: 0; position: absolute; left: 0; top: 0; z-index: 2; vertical-align: bottom; width: auto; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; height: 21px;',
| |
| '.wikEdSummarySelect': 'padding: 0; margin: 0; position: relative; left: 0; top: 0; z-index: 1; vertical-align: text-top; width: auto; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; height: 21px;',
| |
| | |
| // space around submit buttons
| |
| '.editButtons': '',
| |
| | |
| // frame (frame container border will be removed if textarea has none; frame must not have a border)
| |
| '.wikEdFrameOuter': 'float: left; width: auto; border: 1px solid; border-color: #808080 #d0d0d0 #d0d0d0 #808080; position: relative;',
| |
| '.wikEdFrameInner': 'float: left; width: auto; background: white; border: 1px solid; border-color: #404040 #ffffff #ffffff #404040; line-height: 0; position: relative;',
| |
| '.wikEdFrame': 'float: left; width: 100%; border: 0;',
| |
| | |
| // summary
| |
| '.wikEdSummaryWrapper': 'margin: 0.4em 0.75em 0; line-height: 26px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;',
| |
| '.wikEdConsoleTopWrapper': 'clear: both; background: #f0f0f0; border: 1px solid #c0c0c0; position: relative; padding: 0 0 0.6em; margin: 0 0 0.5em;',
| |
| '#wpSummaryLabel': 'margin: 0;',
| |
| '.editOptions': 'padding: 0; border: none; margin: 0 0.75em; float: left',
| |
| '.wikEdClearSummaryForm': 'display: inline;',
| |
| '.wikEdClearSummary': 'vertical-align: middle; margin: 0 0 0 0.5em; padding: 1px; height: 19px; width: 18px; ',
| |
| '#wikEdClearSummaryImg': 'vertical-align: 10%; ',
| |
| | |
| // input wrapper
| |
| '.wikEdInputWrapper': 'position: relative; z-index: 100; margin-top: 0.5em; clear: both;',
| |
| '.wikEdFullscreen .wikEdInputWrapper ': 'position: fixed; margin-top: 0; top: 0; left: 0; right: 0; background: #f0f0f0;',
| |
| 'body.wikEdFullscreen': 'overflow: hidden;',
| |
| '.wikEdFullscreen .portlet ': 'z-index: 0 !important;', // for monobook
| |
| | |
| // other wrappers
| |
| '.wikEdEditorWrapper': '',
| |
| '.wikEdToolbarWrapper': '',
| |
| '.wikEdButtonBarWrapper': 'line-height: 14px; float: left; width: 100%; padding: 0.2em 0;',
| |
| '.wikEdCaptchaWrapper': '',
| |
| '.wikEdDebugWrapper': 'position: relative; margin: 0 0 0.5em;',
| |
| '.wikEdDebugTextarea': 'width: 100%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;',
| |
| '.wikEdEditWrapper': 'clear: both;',
| |
| '.wikEdEditWrapperFull': 'float: left; clear: both; width: 100%;',
| |
| '.wikEdTextareaWrapper': '',
| |
| '.wikEdFrameWrapper': '',
| |
| '.wikEdConsoleWrapper': 'clear: both; background: #f0f0f0; border: 1px solid #c0c0c0; border-top: none; padding: 0 0 0.4em; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; float: left; width: 100%;',
| |
| '.wikEdButtonsWrapper': '',
| |
| '.wikEdButtonsWrapperFull': 'float: left; clear: both; width: 100%;',
| |
| '.wikEdSummaryInputWrapper': 'display: inline; white-space: nowrap;',
| |
| '.wikEdSubmitWrapper': '',
| |
| '.wikEdSubmitButtonsWrapper': 'float: left; margin: 0.4em 0.75em 0;',
| |
| '.wikEdEditOptionsWrapper': 'float: left; margin: 0.4em 0.75em 0;',
| |
| '.wikEdEditHelp': 'white-space: nowrap;',
| |
| '.wikEdInsertWrapper': 'float: left; clear: both; margin-top: 0.25em;',
| |
| '.wikEdFullscreen .wikEdInsertWrapper p': 'display: inline; margin: 0;',
| |
| '.wikEdLocalPrevWrapper': 'float: left; width: 100%;',
| |
| | |
| // various
| |
| '.editCheckboxes': 'margin-bottom: 0;',
| |
| '.wikEdEditOptions': 'display: inline-block; white-space: nowrap; vertical-align: text-top;',
| |
| '.wikEdEditOptions label': 'vertical-align: text-bottom;',
| |
| '#editpage-copywarn': '',
| |
| '#editpage-specialchars': '',
| |
| '#wikEdClonedWarnings': '',
| |
| '#wikEdClonedWarningsNote': 'background: #fff; color: #888; font-size: 75%; display: inline;',
| |
| '.editButtons input:first-child': 'margin-left: 0; margin-right: 0.33em;',
| |
| 'fieldset#templatesandbox-editform': 'margin: 0 0 0.5em 0; float: left;',
| |
| '#templatesandbox-editform legend': 'padding-top: 0;',
| |
| });
| |
| };
| |
| | |
| // buttons
| |
| if (wikEd.config.button === undefined) { wikEd.config.button = {}; }
| |
| | |
| // wikEd.InitButton: define built-in buttons
| |
| wikEd.InitButton = function () {
| |
| wikEd.InitObject(wikEd.config.button, {
| |
| | |
| // button number: [id, class, tooltip, image url, width, height, alt text, onclick handler code were obj is the button element]
| |
| | |
| // format top
| |
| 1: ['wikEdUndo', 'wikEdButtonInactive', wikEd.config.text['wikEdUndo title'], wikEd.config.image['undo'], '16', '16', wikEd.config.text['wikEdUndo alt'], 'wikEd.EditButton(obj, obj.id);' ],
| |
| 2: ['wikEdRedo', 'wikEdButtonInactive', wikEd.config.text['wikEdRedo title'], wikEd.config.image['redo'], '16', '16', wikEd.config.text['wikEdRedo alt'], 'wikEd.EditButton(obj, obj.id);' ],
| |
| 3: ['wikEdBold', 'wikEdButton', wikEd.config.text['wikEdBold title'], wikEd.config.image['bold'], '16', '16', wikEd.config.text['wikEdBold alt'], 'wikEd.EditButton(obj, obj.id);' ],
| |
| 4: ['wikEdItalic', 'wikEdButton', wikEd.config.text['wikEdItalic title'], wikEd.config.image['italic'], '16', '16', wikEd.config.text['wikEdItalic alt'], 'wikEd.EditButton(obj, obj.id);' ],
| |
| 5: ['wikEdUnderline', 'wikEdButton', wikEd.config.text['wikEdUnderline title'], wikEd.config.image['underline'], '16', '16', wikEd.config.text['wikEdUnderline alt'], 'wikEd.EditButton(obj, obj.id);' ],
| |
| 6: ['wikEdStrikethrough', 'wikEdButton', wikEd.config.text['wikEdStrikethrough title'], wikEd.config.image['strikethrough'], '16', '16', wikEd.config.text['wikEdStrikethrough alt'], 'wikEd.EditButton(obj, obj.id);' ],
| |
| 7: ['wikEdNowiki', 'wikEdButton', wikEd.config.text['wikEdNowiki title'], wikEd.config.image['nowiki'], '16', '16', wikEd.config.text['wikEdNowiki alt'], 'wikEd.EditButton(obj, obj.id);' ],
| |
| 8: ['wikEdSuperscript', 'wikEdButton', wikEd.config.text['wikEdSuperscript title'], wikEd.config.image['superscript'], '16', '16', wikEd.config.text['wikEdSuperscript alt'], 'wikEd.EditButton(obj, obj.id);' ],
| |
| 9: ['wikEdSubscript', 'wikEdButton', wikEd.config.text['wikEdSubscript title'], wikEd.config.image['subscript'], '16', '16', wikEd.config.text['wikEdSubscript alt'], 'wikEd.EditButton(obj, obj.id);' ],
| |
| 10: ['wikEdRef', 'wikEdButton', wikEd.config.text['wikEdRef title'], wikEd.config.image['ref'], '16', '16', wikEd.config.text['wikEdRef alt'], 'if (!event.shiftKey) { wikEd.EditButton(obj, \'wikEdRef\'); } else { wikEd.EditButton(obj, \'wikEdRefNamed\'); }' ],
| |
| 12: ['wikEdCase', 'wikEdButton', wikEd.config.text['wikEdCase title'], wikEd.config.image['case'], '16', '16', wikEd.config.text['wikEdCase alt'], 'wikEd.EditButton(obj, obj.id);' ],
| |
| 80: ['wikEdSort', 'wikEdButton', wikEd.config.text['wikEdSort title'], wikEd.config.image['sort'], '16', '16', wikEd.config.text['wikEdSort alt'], 'wikEd.EditButton(obj, obj.id);' ],
| |
| 25: ['wikEdRedirect', 'wikEdButton', wikEd.config.text['wikEdRedirect title'], wikEd.config.image['redirect'], '16', '16', wikEd.config.text['wikEdRedirect alt'], 'wikEd.EditButton(obj, obj.id);' ],
| |
| 13: ['wikEdUndoAll', 'wikEdButton', wikEd.config.text['wikEdUndoAll title'], wikEd.config.image['undoAll'], '16', '16', wikEd.config.text['wikEdUndoAll alt'], 'wikEd.EditButton(obj, obj.id);' ],
| |
| 14: ['wikEdRedoAll', 'wikEdButtonInactive', wikEd.config.text['wikEdRedoAll title'], wikEd.config.image['redoAll'], '16', '16', wikEd.config.text['wikEdRedoAll alt'], 'wikEd.EditButton(obj, obj.id);' ],
| |
| | |
| // format bottom
| |
| 15: ['wikEdWikiLink', 'wikEdButton', wikEd.config.text['wikEdWikiLink title'], wikEd.config.image['wikiLink'], '16', '16', wikEd.config.text['wikEdWikiLink alt'], 'wikEd.EditButton(obj, obj.id);' ],
| |
| 16: ['wikEdWebLink', 'wikEdButton', wikEd.config.text['wikEdWebLink title'], wikEd.config.image['webLink'], '16', '16', wikEd.config.text['wikEdWebLink alt'], 'wikEd.EditButton(obj, obj.id);' ],
| |
| 17: ['wikEdHeading', 'wikEdButton', wikEd.config.text['wikEdHeading title'], wikEd.config.image['heading'], '16', '16', wikEd.config.text['wikEdHeading alt'], 'if (!event.shiftKey) { wikEd.EditButton(obj, \'wikEdIncreaseHeading\'); } else { wikEd.EditButton(obj, \'wikEdDecreaseHeading\'); }' ],
| |
| 19: ['wikEdBulletList', 'wikEdButton', wikEd.config.text['wikEdBulletList title'], wikEd.config.image['bulletList'], '16', '16', wikEd.config.text['wikEdBulletList alt'], 'if (!event.shiftKey) { wikEd.EditButton(obj, \'wikEdIncreaseBulletList\'); } else { wikEd.EditButton(obj, \'wikEdDecreaseBulletList\'); }' ],
| |
| 20: ['wikEdNumberList', 'wikEdButton', wikEd.config.text['wikEdNumberList title'], wikEd.config.image['numberList'], '16', '16', wikEd.config.text['wikEdNumberList alt'], 'if (!event.shiftKey) { wikEd.EditButton(obj, \'wikEdIncreaseNumberList\'); } else { wikEd.EditButton(obj, \'wikEdDecreaseNumberList\'); }' ],
| |
| 21: ['wikEdIndentList', 'wikEdButton', wikEd.config.text['wikEdIndentList title'], wikEd.config.image['indentList'], '16', '16', wikEd.config.text['wikEdIndentList alt'], 'if (!event.shiftKey) { wikEd.EditButton(obj, \'wikEdIncreaseIndentList\'); } else { wikEd.EditButton(obj, \'wikEdDecreaseIndentList\'); }' ],
| |
| 22: ['wikEdDefinitionList', 'wikEdButton', wikEd.config.text['wikEdDefinitionList title'], wikEd.config.image['definitionList'], '16', '16', wikEd.config.text['wikEdDefinitionList alt'], 'wikEd.EditButton(obj, obj.id);' ],
| |
| 23: ['wikEdImage', 'wikEdButton', wikEd.config.text['wikEdImage title'], wikEd.config.image['image'], '16', '16', wikEd.config.text['wikEdImage alt'], 'wikEd.EditButton(obj, obj.id);' ],
| |
| 24: ['wikEdTable', 'wikEdButton', wikEd.config.text['wikEdTable title'], wikEd.config.image['table'], '16', '16', wikEd.config.text['wikEdTable alt'], 'wikEd.EditButton(obj, obj.id);' ],
| |
| 11: ['wikEdReferences', 'wikEdButton', wikEd.config.text['wikEdReferences title'], wikEd.config.image['references'], '16', '16', wikEd.config.text['wikEdReferences alt'], 'if (!event.shiftKey) { wikEd.EditButton(obj, obj.id); } else { wikEd.EditButton(obj, \'wikEdReferencesSection\'); }' ],
| |
| 84: ['wikEdSign', 'wikEdButton', wikEd.config.text['wikEdSign title'], wikEd.config.image['sign'], '16', '16', wikEd.config.text['wikEdSign alt'], 'if (!event.shiftKey) { wikEd.EditButton(obj, obj.id); } else { wikEd.EditButton(obj, \'wikEdSignName\'); }' ],
| |
| | |
| // wikify, textify
| |
| 26: ['wikEdWikify', 'wikEdButton', wikEd.config.text['wikEdWikify title'], wikEd.config.image['wikify'], '16', '16', wikEd.config.text['wikEdWikify alt'], 'wikEd.EditButton(obj, obj.id);' ],
| |
| 27: ['wikEdTextify', 'wikEdButton', wikEd.config.text['wikEdTextify title'], wikEd.config.image['textify'], '16', '16', wikEd.config.text['wikEdTextify alt'], 'if (event.shiftKey) { wikEd.EditButton(obj, obj.id, \'shift\'); } else { wikEd.EditButton(obj, obj.id); }' ],
| |
| | |
| // control top
| |
| 77: ['wikEdRefHide', 'wikEdButtonUnchecked', wikEd.config.text['wikEdRefHide title'], wikEd.config.image['refHide'], '16', '16', wikEd.config.text['wikEdRefHide alt'], 'wikEd.Button(obj, obj.id, true);' ],
| |
| 29: ['wikEdTextZoom', 'wikEdButton', wikEd.config.text['wikEdTextZoom title'], wikEd.config.image['textZoom'], '16', '16', wikEd.config.text['wikEdTextZoom alt'], 'if (!event.shiftKey) { wikEd.Button(obj, \'wikEdTextZoomDown\'); } else { wikEd.Button(obj, \'wikEdTextZoomUp\'); }' ],
| |
| 30: ['wikEdClearHistory', 'wikEdButton', wikEd.config.text['wikEdClearHistory title'], wikEd.config.image['clearHistory'], '16', '16', wikEd.config.text['wikEdClearHistory alt'], 'wikEd.Button(obj, obj.id);' ],
| |
| 31: ['wikEdScrollToPreview', 'wikEdButton', wikEd.config.text['wikEdScrollToPreview title'], wikEd.config.image['scrollToPreviewDown'], '16', '16', wikEd.config.text['wikEdScrollToPreview alt'], 'wikEd.Button(obj, obj.id);' ],
| |
| 32: ['wikEdScrollToEdit', 'wikEdButton', wikEd.config.text['wikEdScrollToEdit title'], wikEd.config.image['scrollToEditDown'], '16', '16', wikEd.config.text['wikEdScrollToEdit alt'], 'wikEd.Button(obj, obj.id);' ],
| |
| | |
| // control bottom
| |
| 33: ['wikEdUseWikEd', 'wikEdButtonChecked', wikEd.config.text['wikEdUseWikEd title'], wikEd.config.image['useWikEd'], '16', '16', wikEd.config.text['wikEdUseWikEd alt'], 'if (!event.ctrlKey) { wikEd.Button(obj, obj.id, true); } else { wikEd.DebugInfo(event); }' ],
| |
| 34: ['wikEdHighlightSyntax', 'wikEdButtonUnchecked', wikEd.config.text['wikEdHighlightSyntax title'], wikEd.config.image['highlightSyntax'], '16', '16', wikEd.config.text['wikEdHighlightSyntax alt'], 'wikEd.Button(obj, obj.id, true);' ],
| |
| 35: ['wikEdSource', 'wikEdButton', wikEd.config.text['wikEdSource title'], wikEd.config.image['source'], '16', '16', wikEd.config.text['wikEdSource alt'], 'wikEd.EditButton(obj, obj.id);' ],
| |
| 75: ['wikEdCloseToolbar', 'wikEdButtonUnchecked', wikEd.config.text['wikEdCloseToolbar title'], wikEd.config.image['closeToolbar'], '16', '16', wikEd.config.text['wikEdCloseToolbar alt'], 'wikEd.Button(obj, obj.id, true);' ],
| |
| 36: ['wikEdUsing', 'wikEdButtonUnchecked', wikEd.config.text['wikEdUsing title'], wikEd.config.image['using'], '16', '16', wikEd.config.text['wikEdUsing alt'], 'wikEd.Button(obj, obj.id, true);' ],
| |
| 37: ['wikEdFullScreen', 'wikEdButtonUnchecked', wikEd.config.text['wikEdFullScreen title'], wikEd.config.image['fullScreen'], '16', '16', wikEd.config.text['wikEdFullScreen alt'], 'wikEd.Button(obj, obj.id, true);' ],
| |
| 79: ['wikEdTableMode', 'wikEdButtonUnchecked', wikEd.config.text['wikEdTableMode title'], wikEd.config.image['tableMode'], '16', '16', wikEd.config.text['wikEdTableMode alt'], 'wikEd.Button(obj, obj.id, true);' ],
| |
| | |
| // find top
| |
| 39: ['wikEdFindAll', 'wikEdButton', wikEd.config.text['wikEdFindAll title'], wikEd.config.image['findAll'], '16', '16', wikEd.config.text['wikEdFindAll alt'], 'wikEd.EditButton(obj, obj
| |