rem: HTMLArea._addEvent(el, "click", function (ev) { if (obj.enabled) with (HTMLArea) { _removeClass(el, "buttonActive");  if(HTMLArea.is_gecko) { editor.activateEditor(); } obj.cmd(editor, obj.name, obj); _stopEvent(is_ie ? window.event : ev); } }); 
add: this._popupDialog("insert_table.html", function(param) { if (!param) { return false; } var doc = editor._doc;  var table = doc.createElement("table");   for (var field in param) { var value = param[field]; if (!value) { continue; } switch (field) { case "f_width"   : table.style.width = value + param["f_unit"]; break; case "f_align"   : table.align	 = value; break; case "f_border"  : table.border	 = parseInt(value); break; case "f_spacing" : table.cellSpacing = parseInt(value); break; case "f_padding" : table.cellPadding = parseInt(value); break; } } var tbody = doc.createElement("tbody"); table.appendChild(tbody); for (var i = 0; i < param["f_rows"]; ++i) { var tr = doc.createElement("tr"); tbody.appendChild(tr); for (var j = 0; j < param["f_cols"]; ++j) { var td = doc.createElement("td"); tr.appendChild(td);  (HTMLArea.is_gecko) && td.appendChild(doc.createElement("br")); } } if (HTMLArea.is_ie) { range.pasteHTML(table.outerHTML); } else {  editor.insertNodeAtSelection(table); } return true; }, null); 
context:       HTMLArea._addEvent(el, "click", function (ev) {        if (obj.enabled) with (HTMLArea) {          _removeClass(el, "buttonActive");          //_removeClass(el, "buttonHover");          if(HTMLArea.is_gecko)          {            editor.activateEditor();          }          obj.cmd(editor, obj.name, obj);          _stopEvent(is_ie ? window.event : ev);        }      });
meta: 7119	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7119/4d968a51f578e3361a382d6fa8372e519c47ba55/htmlarea.js/clean/phpgwapi/js/htmlarea/htmlarea.js