rem: editor._timerToolbar = setTimeout(function() { editor.updateToolbar(); editor._timerToolbar = null; }, 50); 
add: function (file) { var htmlSelectionControl = "Control"; var grngMaster = editor._doc.selection.createRange();   if (editor._doc.selection.type == htmlSelectionControl) { grngMaster.execCommand('Delete'); grngMaster = editor._doc.selection.createRange(); }  idstr = "556e697175657e537472696e67"; grngMaster.execCommand("CreateLink", null, idstr); coll = editor._doc.getElementsByTagName("A"); for(i=0; i<coll.length; i++) { if (coll[i].href == idstr) { link_element = coll[i]; if (link_element.firstChild == null) { txt = editor._doc.createTextNode(file.name); link_element.appendChild(txt); } link_element.href = '/root?node_id=' + file.node_id; link_element.title = file.name; } }  grngMaster.collapse(false); grngMaster.select(); }, 
context: 	editor._timerToolbar = setTimeout(function()	{		editor.updateToolbar();		editor._timerToolbar = null;	}, 50);
meta: 8196	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8196/2a28919f6e958d01456898eb25453990d50e52e9/htmlarea.js/clean/2.2.1/shared/richedit/htmlarea.js