rem: if(!item){ switch(name){  case 'bold': case 'copy': case 'cut': case 'delete': case 'indent': case 'inserthorizontalrule': case 'insertorderedlist': case 'insertunorderedlist': case 'italic': case 'justifycenter': case 'justifyfull': case 'justifyleft': case 'justifyright': case 'outdent': case 'paste': case 'redo': case 'removeformat': case 'selectall': case 'strikethrough': case 'subscript': case 'superscript': case 'underline': case 'undo': case 'unlink': case 'createlink': case 'insertimage':  case 'htmltoggle': item = new dojo.widget.Editor2ToolbarButton(name); break; case 'forecolor': case 'hilitecolor': item = new dojo.widget.Editor2ToolbarColorPaletteButton(name); break; case 'plainformatblock': item = new dojo.widget.Editor2ToolbarFormatBlockPlainSelect("formatblock"); break; case 'formatblock': item = new dojo.widget.Editor2ToolbarFormatBlockSelect("formatblock"); break; case 'fontsize': item = new dojo.widget.Editor2ToolbarFontSizeSelect("fontsize"); break; case 'fontname': item = new dojo.widget.Editor2ToolbarFontNameSelect("fontname"); break; case 'inserttable': case 'insertcell': case 'insertcol': case 'insertrow': case 'deletecells': case 'deletecols': case 'deleterows': case 'mergecells': case 'splitcell': dojo.debug(name + " is implemented in dojo.widget.Editor2Plugin.TableOperation, please require it first."); break;  case 'inserthtml': case 'blockdirltr': case 'blockdirrtl': case 'dirltr': case 'dirrtl': case 'inlinedirltr': case 'inlinedirrtl': dojo.debug("Not yet implemented toolbar item: "+name); break; default: dojo.debug("dojo.widget.Editor2ToolbarItemManager.getToolbarItem: Unknown toolbar item: "+name); } 
add: switch(name){  case 'bold': case 'copy': case 'cut': case 'delete': case 'indent': case 'inserthorizontalrule': case 'insertorderedlist': case 'insertunorderedlist': case 'italic': case 'justifycenter': case 'justifyfull': case 'justifyleft': case 'justifyright': case 'outdent': case 'paste': case 'redo': case 'removeformat': case 'selectall': case 'strikethrough': case 'subscript': case 'superscript': case 'underline': case 'undo': case 'unlink': case 'createlink': case 'insertimage':  case 'htmltoggle': item = new dojo.widget.Editor2ToolbarButton(name); break; case 'forecolor': case 'hilitecolor': item = new dojo.widget.Editor2ToolbarColorPaletteButton(name); break; case 'plainformatblock': item = new dojo.widget.Editor2ToolbarFormatBlockPlainSelect("formatblock"); break; case 'formatblock': item = new dojo.widget.Editor2ToolbarFormatBlockSelect("formatblock"); break; case 'fontsize': item = new dojo.widget.Editor2ToolbarFontSizeSelect("fontsize"); break; case 'fontname': item = new dojo.widget.Editor2ToolbarFontNameSelect("fontname"); break; case 'inserttable': case 'insertcell': case 'insertcol': case 'insertrow': case 'deletecells': case 'deletecols': case 'deleterows': case 'mergecells': case 'splitcell': dojo.debug(name + " is implemented in dojo.widget.Editor2Plugin.TableOperation, please require it first."); break;  case 'inserthtml': case 'blockdirltr': case 'blockdirrtl': case 'dirltr': case 'dirrtl': case 'inlinedirltr': case 'inlinedirrtl': dojo.debug("Not yet implemented toolbar item: "+name); break; default: dojo.debug("dojo.widget.Editor2ToolbarItemManager.getToolbarItem: Unknown toolbar item: "+name); 
context: 	getToolbarItem: function(/*String*/name){		// summary: return a toobar item with the given name		var item;		name = name.toLowerCase();		for(var i in this._registeredItemHandlers){			item = this._registeredItemHandlers[i](name);			if(item){				break;			}		}		if(!item){			switch(name){				//button for builtin functions				case 'bold':				case 'copy':				case 'cut':				case 'delete':				case 'indent':				case 'inserthorizontalrule':				case 'insertorderedlist':				case 'insertunorderedlist':				case 'italic':				case 'justifycenter':				case 'justifyfull':				case 'justifyleft':				case 'justifyright':				case 'outdent':				case 'paste':				case 'redo':				case 'removeformat':				case 'selectall':				case 'strikethrough':				case 'subscript':				case 'superscript':				case 'underline':				case 'undo':				case 'unlink':				case 'createlink':				case 'insertimage':				//extra simple buttons				case 'htmltoggle':					item = new dojo.widget.Editor2ToolbarButton(name);					break;				case 'forecolor':				case 'hilitecolor':					item = new dojo.widget.Editor2ToolbarColorPaletteButton(name);					break;				case 'plainformatblock':					item = new dojo.widget.Editor2ToolbarFormatBlockPlainSelect("formatblock");					break;				case 'formatblock':					item = new dojo.widget.Editor2ToolbarFormatBlockSelect("formatblock");					break;				case 'fontsize':					item = new dojo.widget.Editor2ToolbarFontSizeSelect("fontsize");					break;				case 'fontname':					item = new dojo.widget.Editor2ToolbarFontNameSelect("fontname");					break;				case 'inserttable':				case 'insertcell':				case 'insertcol':				case 'insertrow':				case 'deletecells':				case 'deletecols':				case 'deleterows':				case 'mergecells':				case 'splitcell':					dojo.debug(name + " is implemented in dojo.widget.Editor2Plugin.TableOperation, please require it first.");					break;				//TODO:				case 'inserthtml':				case 'blockdirltr':				case 'blockdirrtl':				case 'dirltr':				case 'dirrtl':				case 'inlinedirltr':				case 'inlinedirrtl':					dojo.debug("Not yet implemented toolbar item: "+name);					break;				default:					dojo.debug("dojo.widget.Editor2ToolbarItemManager.getToolbarItem: Unknown toolbar item: "+name);			}		}		return item;	}
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/Editor2Toolbar.js/clean/www/resources/dojo-ajax/src/widget/Editor2Toolbar.js