MediaWiki:Gadget-Edittools-vector.js:修订间差异

撤销=海豚=讨论)的版本112124
imported>=海豚=
无编辑摘要
imported>=海豚=
(撤销=海豚=讨论)的版本112124)
 
(未显示同一用户的15个中间版本)
第35行: 第35行:
        }
        }
      } );
      } );
      this.wikiEditor('addToToolbar', {
      this.wikiEditor('addToToolbar', {
        'section': 'advanced',
        'section': 'advanced',
        'group': 'format',
        'group': 'format',
        'tools': {
        'tools': {
          'justify-left': {
          'strikethrough': {
            label: ' 左对齐',
            label: ' 删除线',
            type: 'button',
            type: 'button',
            icon: '//upload.wikimedia.org/wikipedia/commons/7/7f/OOjs_UI_icon_alignLeft.svg',
            icon: '//upload.wikimedia.org/wikipedia/commons/7/72/VisualEditor_-_Icon_-_Strikethrough-s.svg',
            action: {
            action: {
              type: 'encapsulate',
              type: 'encapsulate',
              options: {
              options: {
                pre: "<div style=\"text-align: left;\">",
                pre: "<s>",
                post: "</div>"
                post: "</s>"
              }
              }
            }
            }
          },
          },


          'justify-center': {
          'underline': {
            label: ' 居中',
            label: ' 下划线',
            type: 'button',
            type: 'button',
            icon: '//upload.wikimedia.org/wikipedia/commons/b/ba/OOjs_UI_icon_alignCenter.svg',
            icon: '//upload.wikimedia.org/wikipedia/commons/a/a9/VisualEditor_-_Icon_-_Underline-u.svg',
            action: {
            action: {
              type: 'encapsulate',
              type: 'encapsulate',
              options: {
              options: {
                pre: "<div style=\"text-align: center;\">",
                pre: "<u>",
                post: "</div>"
                post: "</u>"
              }
              }
            }
            }
          },
          },


          'justify-right': {
          'source': {
            label: ' 右对齐',
            label: ' 条目引用',
            type: 'button',
            type: 'button',
            icon: '//upload.wikimedia.org/wikipedia/commons/1/13/OOjs_UI_icon_alignRight.svg',
            icon: '//upload.wikimedia.org/wikipedia/commons/2/2c/VisualEditor_-_Icon_-_Source.svg',
            action: {
            action: {
              type: 'encapsulate',
              type: 'encapsulate',
              options: {
              options: {
                pre: "<div style=\"text-align: right;\">",
                pre: "[[",
                post: "</div>"
                post: ']]'
              }
              }
            }
            }
          },
          },


 
          'justify-left': {
          'strikethrough': {
            label: ' 左对齐',
            label: ' 删除线',
            type: 'button',
            type: 'button',
            icon: '//upload.wikimedia.org/wikipedia/commons/7/72/VisualEditor_-_Icon_-_Strikethrough-s.svg',
            icon: '//upload.wikimedia.org/wikipedia/commons/7/7f/OOjs_UI_icon_alignLeft.svg',
            action: {
            action: {
              type: 'encapsulate',
              type: 'encapsulate',
              options: {
              options: {
                pre: "<s>",
                pre: "<div style=\"text-align: left;\">",
                post: "</s>"
                post: "</div>"
              }
              }
            }
            }
          },
          },


          'underline': {
          'justify-center': {
            label: ' 下划线',
            label: ' 居中',
            type: 'button',
            type: 'button',
            icon: '//upload.wikimedia.org/wikipedia/commons/a/a9/VisualEditor_-_Icon_-_Underline-u.svg',
            icon: '//upload.wikimedia.org/wikipedia/commons/b/ba/OOjs_UI_icon_alignCenter.svg',
           action: {
             type: 'encapsulate',
             options: {
               pre: "<u>",
               post: "</u>"
             }
           }
         },
 
         'quote': {
           label: '块引用',
           type: 'button',
           icon: '//upload.wikimedia.org/wikipedia/commons/d/d8/VisualEditor_-_Icon_-_Block-quote.svg',
            action: {
            action: {
              type: 'encapsulate',
              type: 'encapsulate',
              options: {
              options: {
                pre: "<blockquote>",
                pre: "<center>",
                post: "</blockquote>"
                post: "</center>"
              }
              }
            }
            }
          },
          },


          'source': {
          'justify-right': {
            label: ' 源代码',
            label: ' 右对齐',
            type: 'button',
            type: 'button',
            icon: '//upload.wikimedia.org/wikipedia/commons/2/2c/VisualEditor_-_Icon_-_Source.svg',
            icon: '//upload.wikimedia.org/wikipedia/commons/1/13/OOjs_UI_icon_alignRight.svg',
            action: {
            action: {
              type: 'encapsulate',
              type: 'encapsulate',
              options: {
              options: {
                pre: "<syntaxhighlight lang=\"text\">",
                pre: "<div style=\"text-align: right;\">",
                post: '</syntaxhighlight>'
                post: "</div>"
              }
              }
            }
            }
匿名用户