// new edit toolbar used with permission
// by Alex King
// http://www.alexking.org/
var edButtons = new Array();
var edLinks = new Array();
var edOpenTags = new Array();
function edButton(id, display, tagStart, tagEnd, access, open) {
this.id = id; // used to name the toolbar button
this.display = display; // label on button
this.tagStart = tagStart; // open tag
this.tagEnd = tagEnd; // close tag
this.access = access; // access key
this.open = open; // set to -1 if tag does not need to be closed
}
/*
** TODO: Make it so ins and del have proper datetime attributes, formatted as so: **
1999-02-22T16:03:30-08:00
** Here's my start **
var now = new Date();
var datetime = now.getFullYear() + '-' +
*/
edButtons[edButtons.length] = new edButton('ed_strong'
,'strong'
,''
,''
,'b'
);
edButtons[edButtons.length] = new edButton('ed_em'
,'em'
,''
,''
,'i'
);
edButtons[edButtons.length] = new edButton('ed_del'
,'del'
,''
,''
,'d'
);
edButtons[edButtons.length] = new edButton('ed_ins'
,'ins'
,''
,''
,'d'
);
edButtons[edButtons.length] = new edButton('ed_link'
,'link'
,''
,''
,'a'
); // special case
edButtons[edButtons.length] = new edButton('ed_img'
,'img'
,''
,''
,'m'
,-1
); // special case
edButtons[edButtons.length] = new edButton('ed_ul'
,'ul'
,'
' ,'' ,'q' ); edButtons[edButtons.length] = new edButton('ed_pre' ,'pre' ,'
'
,''
);
edButtons[edButtons.length] = new edButton('ed_more'
,'more'
,''
,''
,'t'
,-1
);
edButtons[edButtons.length] = new edButton('ed_next'
,'n-page'
,''
,''
,'p'
,-1
);
edButtons[edButtons.length] = new edButton('ed_span_left'
,'span_left'
,''
,''
,'p'
);
edButtons[edButtons.length] = new edButton('ed_span_right'
,'span_right'
,''
,''
,'p'
);
edButtons[edButtons.length] = new edButton('ed_pic_drop_shadow'
,'pic drop shadow'
,'' ,'