array (
'name' => 'Lab',
'pages' => 'node/*
comment/*',
'excludes' => 'edit-log
edit-menu-description',
'iconpath' => '%BUEDITOR/icons',
'spriteon' => '0',
'buttons' =>
array (
0 =>
array (
'title' => 'Tag dialog',
'content' => 'js:
var form = [
{
name: \'foo\',
title: \'Foo\',
attributes: {style: \'color: red\', onchange: \'this.form.attr_bar.value = this.value\'},
value: \'\',
getnext: true,
required: true,
prefix: \'prefix-\',
type: \'select\',
options: {\'\': \'no value\', 1: \'value-1\', n: \'value-n\'}
},
{
name: \'bar\',
attributes: {value: \'bar\', disabled: \'disabled\'},
value: \'bar bar\',
suffix: \'-suffix\'
},
\'baz\'
];
var options = {};
options.title = \'Dialog title\';
options.stitle = \'Submit it!\';
options.validate = function(tag, form) {
return confirm(\'Confirm?\');
};
options.submit = function(tag, form) {
var str = \'\\nForm elements name-value pairs\\n\';
$.each(form.elements, function(i, el){
str += el.name +\'=\'+ el.value +\'\\n\';
});
E.replaceSelection(str);
};
E.tagDialog(\'tag\', form, options);',
'icon' => 'Custom Form',
'accesskey' => 'D',
'weight' => '0',
),
1 =>
array (
'title' => 'Toggle tag',
'content' => 'js: E.toggleTag(\'strong\', {\'class\': \'error\', style: \'font: courier\'});',
'icon' => 'Toggle tag',
'accesskey' => 'T',
'weight' => '1',
),
2 =>
array (
'title' => 'AjaxPreview',
'content' => 'js: E.prvAjax();',
'icon' => 'XPreview',
'accesskey' => 'E',
'weight' => '2',
),
3 =>
array (
'title' => 'Find',
'content' => 'js: E.frForm();',
'icon' => 'Find',
'accesskey' => 'F',
'weight' => '3',
),
4 =>
array (
'title' => 'Replace',
'content' => 'js: E.frForm({
isrep: true, //enable replace
iscase: true, //enable case sensitive switch
isreg: true, //enable regular expression switch
title: \'Replace some text\' //custom title
});',
'icon' => 'Replace',
'accesskey' => 'R',
'weight' => '4',
),
5 =>
array (
'title' => 'Undo',
'content' => 'js: E.undo();',
'icon' => 'Undo',
'accesskey' => 'Z',
'weight' => '5',
),
6 =>
array (
'title' => 'Redo',
'content' => 'js: E.redo();',
'icon' => 'Redo',
'accesskey' => 'Y',
'weight' => '6',
),
7 =>
array (
'title' => 'tpl:break',
'content' => '
',
'icon' => '',
'accesskey' => '',
'weight' => '7',
),
8 =>
array (
'title' => 'Test accessibility',
'content' => 'js:
var $html = $(\'
Open this using Ctrl+J
Use UP, DOWN, ENTER, ESC
\'); $html.find(\'a\').click(function(){ E.replaceSelection(this.title + \' was chosen\'); return false; }); E.quickPop.open($html);', 'icon' => 'Choose', 'accesskey' => 'J', 'weight' => '8', ), 9 => array ( 'title' => 'Direct IMCE', 'content' => 'js: E.imce && E.imce.url && E.imce.open({ ready: E.imce.readyDefault, sendto: function(file, win, pop) { if (!file.width) return win.imce.setMessage(\'Please select an image file!\', \'error\'); pop.close(); E.replaceSelection(\'\').focus(); } });', 'icon' => 'Image(IMCE)', 'accesskey' => 'M', 'weight' => '9', ), 10 => array ( 'title' => 'Auto LI', 'content' => '