提供: defeatedcrow mod wiki
Defeatedcrow (トーク | 投稿記録) (ページの作成:「jQuery( document ).ready( function ( $ ) { $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'advanced', group: 'format', tools: {...」) |
Defeatedcrow (トーク | 投稿記録) |
||
7行目: | 7行目: | ||
label: 'Comment visible only for editors', | label: 'Comment visible only for editors', | ||
type: 'button', | type: 'button', | ||
− | icon: '//extensions/WikiEditor/modules/images/toolbar/aformat-italic-C.png', | + | icon: '//defeatedcrow.jp/modwiki/extensions/WikiEditor/modules/images/toolbar/aformat-italic-C.png', |
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', | ||
26行目: | 26行目: | ||
label: 'source code', | label: 'source code', | ||
type: 'button', | type: 'button', | ||
− | icon: '//extensions/WikiEditor/modules/images/toolbar/add-code.png', | + | icon: '//defeatedcrow.jp/modwiki/extensions/WikiEditor/modules/images/toolbar/add-code.png', |
action: { | action: { | ||
type: 'encapsulate', | type: 'encapsulate', |
2016年3月8日 (火) 12:29時点における版
jQuery( document ).ready( function ( $ ) { $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'advanced', group: 'format', tools: { buttonId: { label: 'Comment visible only for editors', type: 'button', icon: '//defeatedcrow.jp/modwiki/extensions/WikiEditor/modules/images/toolbar/aformat-italic-C.png', action: { type: 'encapsulate', options: { pre: '<!-- ', peri: 'Insert comment here', post: ' -->' } } } } } ); $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { section: 'advanced', group: 'format', tools: { buttonId: { label: 'source code', type: 'button', icon: '//defeatedcrow.jp/modwiki/extensions/WikiEditor/modules/images/toolbar/add-code.png', action: { type: 'encapsulate', options: { pre: '<source lang="java">', peri: 'Insert sode here', post: '<source>' } } } } } ); $j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { 'section': 'info', 'pages': { 'colors': { 'layout': 'table', 'label': 'Colors', 'headings': [ { text: 'Name' }, // or use textMsg for localization, see also above { text: 'Temperature' }, { text: 'Swatch' } ], 'rows': [ { 'name': { text: 'Red' }, 'temp': { text: 'Warm' }, 'swatch': { html: '<div style="width:10px;height:10px;background-color:red;">' } }, { 'name': { text: 'Blue' }, 'temp': { text: 'Cold' }, 'swatch': { html: '<div style="width:10px;height:10px;background-color:blue;">' } }, { 'name': { text: 'Silver' }, 'temp': { text: 'Neutral' }, 'swatch': { html: '<div style="width:10px;height:10px;background-color:silver;">' } } ] } } } ); } );