function TableOperations(editor) {
	this.editor = editor;

	var cfg = editor.config;
	var tt = TableOperations.I18N;
	var bl = TableOperations.btnList;
	var self = this;

	// register the toolbar buttons provided by this plugin
	var toolbar = ["linebreak"];
	for (var i in bl) {
		var btn = bl[i];
		if (!btn) {
			toolbar.push("separator");
		} else {
			var id = "TO-" + btn[0];
			cfg.registerButton(id, tt[id], editor.imgURL(btn[0] + ".gif", "TableOperations"), false,
					   function(editor, id) {
						   // dispatch button press event
						   self.buttonPress(editor, id);
					   }, btn[1]);
			toolbar.push(id);
		}
	}

	// add a new line in the toolbar
	cfg.toolbar.push(toolbar);
}
// HTMLArea-3.0 (except "insert table" which is included in the main file)
HTMLArea-3.0 (except "insert table" which is included in the main file)
HTMLArea - 3 . 0 ( except " insert table " which is included in the main file )
function TableOperations(editor) {
	this.editor = editor;
	var cfg = editor.config;
	var tt = TableOperations.I18N;
	var bl = TableOperations.btnList;
	var self = this;
	var toolbar = ["linebreak"];
	for (var i in bl) {
		var btn = bl[i];
		if (!btn) {
			toolbar.push("separator");
		} else {
			var id = "TO-" + btn[0];
			cfg.registerButton(id, tt[id], editor.imgURL(btn[0] + ".gif", "TableOperations"), false,
					   function(editor, id) {
						   self.buttonPress(editor, id);
					   }, btn[1]);
			toolbar.push(id);
		}
	}
	cfg.toolbar.push(toolbar);
}
function TableOperations ( editor ) { this . editor = editor ; var cfg = editor . config ; var tt = TableOperations . I18N ; var bl = TableOperations . btnList ; var self = this ; var toolbar = [ "linebreak" ] ; for ( var i in bl ) { var btn = bl [ i ] ; if ( ! btn ) { toolbar . push ( "separator" ) ; } else { var id = "TO-" + btn [ 0 ] ; cfg . registerButton ( id , tt [ id ] , editor . imgURL ( btn [ 0 ] + ".gif" , "TableOperations" ) , false , function ( editor , id ) { self . buttonPress ( editor , id ) ; } , btn [ 1 ] ) ; toolbar . push ( id ) ; } } cfg . toolbar . push ( toolbar ) ; }
HTMLArea-3.0 (except "insert table" which is included in the main file)
HTMLArea - 3 . 0 ( except " insert table " which is included in the main file )
// register the toolbar buttons provided by this plugin // dispatch button press event // add a new line in the toolbar