"title", "content", "icon", "accesskey", "weight"
"Insert/edit link", "php:
$imce_url = function_exists(\'imce_access\') && imce_access() ? url(\'imce\') : \'\';
return \"js:
var B = eDefBrowseButton(\'$imce_url\', \'attr_href\', \'Browse\', \'link\');
var form = [
{name: \'href\', title: \'Link URL\', suffix: B},
{name: \'html\', title: \'Link text\'},
];
eDefTagDialog(\'a\', form, \'Insert/edit link\', \'OK\');
\";", "link.png", "L", "-10"
"Bold", "%TEXT%", "bold.png", "B", "-6"
"Italic", "js: eDefTagger(\'em\');//toggle tag", "italic.png", "I", "-6"
"Headers", "js: eDefTagChooser([
[\'h1\', \'Header1\'],
[\'h2\', \'Header2\'],
[\'h3\', \'Header3\'],
[\'h4\', \'Header4\']
], true, \'li\', \'ul\', \'slideDown\');//choose among tags", "headers.png", "H", "-5"
"Imager", "js:
// function that inserts the user input from the form into the textarea. this might be defined outside as well.
myUserInput = function(form) {
E.replaceSelection(\'User input is: \'+ form.elements[\"user_input\"].value);
editor.dialog.close();//close the dialog when done.
}
var form = [
{name: \'src\', title: \'Image URL\'},
{name: \'width\', title: \'Width x Height\', suffix: \' x \', getnext: true, attributes: {size: 3}},
{name: \'height\', attributes: {size: 3}},
{name: \'alt\', title: \'Alternative text\'},
{name: \'align\', title: \'Image align\', type: \'select\', options: {\'\': \'\', left: \'Left\', right: \'Right\', center: \'Center\'}}
];
eDefTagDialog(\'img\', form, \'Insert/edit image\', \'OK\');", "image.png", "", "-4"
"Ordered list. Converts selected lines to a numbered list.", "js: eDefTagLines(\'
\\n\', \' - \', \'
\', \'\\n
\');", "ol.png", "O", "-2"
"Unordered list. Converts selected lines to a bulleted list.", "js: eDefTagLines(\'\\n\', \' - \', \'
\', \'\\n
\');", "ul.png", "U", "-2"
"Blockquote", "%TEXT%
", "Quote", "", "0"
"Boxed", "%TEXT%
", "Boxed", "", "0"
"Break", "
", "Break", "", "0"
"Center Justify", "%TEXT%
", "centeralign.png", "C", "0"
"Full Justify", "%TEXT%
", "justify.png", "J", "0"
"Left Justify", "%TEXT%
", "leftalign.png", "L", "0"
"Paragraph", "%TEXT%
", "Pgph", "", "0"
"Red", "%TEXT%", "Red", "", "0"
"Right Justify", "%TEXT%
", "rightalign.png", "R", "0"
"Table", "js:
//6.x users may use BUE.quickPop.open(\'\');
quickTableX = -1, quickTableY = -1;
quickTableTd = function () {
$(this).css(
{width: \'16px\', height: \'16px\', border: \'1px solid #ddd\', padding: \'5px\', backgroundColor: \'white\', cursor: \'pointer\'}
).html(\' \').mouseover(quickTableTdOver).click(quickTableTdClick);
};
quickTableTdOver = function () {
var row = this.parentNode, table = row.parentNode, X = this.cellIndex, Y = row.rowIndex;
if (X == row.cells.length - 1) {
for (var i = table.rows.length; i; i--) quickTableTd.apply(table.rows[i-1].insertCell(X+1));
}
if (Y == table.rows.length - 1) {
var _row = table.insertRow(Y+1);
for (var i = 0, t = row.cells.length; i < t; i++) quickTableTd.apply(_row.insertCell(i));
}
var aX = X < quickTableX ? [quickTableX, X, quickTableY, \'white\'] : [X, quickTableX, Y, \'blue\'];
var aY = Y < quickTableY ? [quickTableY, Y, quickTableX, \'white\'] : [Y, quickTableY, X, \'blue\'];
for (var i = aX[0]; i > aX[1]; i--) for (var j = aX[2]; j > -1; j--) {
table.rows[j].cells[i].style.backgroundColor = aX[3];
}
for (var i = aY[0]; i > aY[1]; i--) for (var j = aY[2]; j > -1; j--) {
table.rows[i].cells[j].style.backgroundColor = aY[3];
}
quickTableX = X, quickTableY = Y;
};
quickTableTdClick = function () {
var cells = \'\', rows = \'\';
for (var i = quickTableX; i > -1 ; i--) {
cells += \' | \\n\';
}
for (var i = quickTableY; i > -1 ; i--) {
rows += \'\\n\\n\'+ cells +\'
\';
}
//use BUE instead of editor in 6.x
editor.dialog.close();
editor.active.replaceSelection(\'\', \'end\');
};
$(\'#bue-quick-table td\').each(quickTableTd);", "Table", "", "0"
"Underline", "%TEXT%", "U - FIX", "", "0"
"Preview", "js: eDefPreview();", "preview.png", "P", "6"
"Help", "js: eDefHelp(\'slideDown\');", "help.png", "F", "10"