rem: var anySelection = false; var inst = tinyMCE.getInstanceById(editor_id); var focusElm = inst.getFocusElement(); var selectedText = inst.selection.getSelectedText(); 
add: var inst = tinyMCE.getInstanceById(editor_id), anySelection = false; var focusElm = inst.getFocusElement(), selectedText = inst.selection.getSelectedText(); 
context: 	execCommand : function(editor_id, element, command, user_interface, value) {		switch (command) {			case "mceAdvLink":				var anySelection = false;				var inst = tinyMCE.getInstanceById(editor_id);				var focusElm = inst.getFocusElement();				var selectedText = inst.selection.getSelectedText();				if (tinyMCE.selectedElement)					anySelection = (tinyMCE.selectedElement.nodeName.toLowerCase() == "img") || (selectedText && selectedText.length > 0);				if (anySelection || (focusElm != null && focusElm.nodeName == "A")) {					var template = new Array();					template['file']   = '../../plugins/advlink/link.htm';					template['width']  = 480;					template['height'] = 400;					// Language specific width and height addons					template['width']  += tinyMCE.getLang('lang_advlink_delta_width', 0);					template['height'] += tinyMCE.getLang('lang_advlink_delta_height', 0);					tinyMCE.openWindow(template, {editor_id : editor_id, inline : "yes"});				}				return true;		}		return false;	},
meta: 3891	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3891/e8e3862e104280a24076077196c7b5713720de70/editor_plugin_src.js/clean/plugins/editors/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin_src.js