مدیاویکی:Common.js: تفاوت بین نسخهها
پرش به ناوبری
پرش به جستجو
(صفحهای جدید حاوی ' if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/c/c...' ایجاد کرد) |
|||
| سطر ۱: | سطر ۱: | ||
| − | + | jQuery(document).ready(function ($) { | |
| − | + | $('#wpTextbox1').wikiEditor('addToToolbar', { | |
| − | + | section: 'advanced', | |
| − | + | group: 'format', | |
| − | + | tools: { | |
| − | + | buttonId: { | |
| − | + | label: 'Comment visible only for editors', | |
| − | + | type: 'button', | |
| − | + | icon: '//upload.wikimedia.org/wikipedia/commons/f/f9/Toolbaricon_regular_S_stroke.png', | |
| − | + | action: { | |
| − | + | type: 'encapsulate', | |
| − | + | options: { | |
| − | + | pre: "<!-- ", | |
| − | + | peri: "Insert comment here", | |
| − | + | post: " -->" | |
| − | + | } | |
| − | + | } | |
| − | + | } | |
| − | + | } | |
| − | + | }); | |
| − | + | }); | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
نسخهٔ ۲۴ ژوئیهٔ ۲۰۱۲، ساعت ۰۹:۴۳
jQuery(document).ready(function ($) {
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
buttonId: {
label: 'Comment visible only for editors',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/f/f9/Toolbaricon_regular_S_stroke.png',
action: {
type: 'encapsulate',
options: {
pre: "<!-- ",
peri: "Insert comment here",
post: " -->"
}
}
}
}
});
});




