rem: var sel = editor._getSelection(); var range = editor._createRange(sel);   if (sel.type == "Control") { if (range.item(0).tagName == 'IMG') { params = range.item(0).id; params = params.split(':'); img = {node_id:  params[0], width:   range.item(0).width, height:   range.item(0).height, border:  range.item(0).border, hspace:  range.item(0).hspace, vspace:  range.item(0).vspace, align:  range.item(0).align, alt:  range.item(0).alt, type:  params[1], link_to: params[2]}; return img; } } return false 
add: sel = editor.getParentElement(); if (sel.tagName == 'IMG' && sel.hasAttribute('limb_attributes')) { params = sel.getAttribute('limb_attributes'); params = params.split(':'); img = {node_id: params[0], width:   sel.width, height:  sel.height, border:  sel.border, hspace:  sel.hspace, vspace:  sel.vspace, align:   sel.align, alt:     sel.alt, type:    params[1], link_to: params[2]}; return img; } return null; 
context:     function()    {      			var sel = editor._getSelection();			var range = editor._createRange(sel);    		          // delete selected content and replace with image      if (sel.type == "Control")      {      	if (range.item(0).tagName == 'IMG')      	{      		params = range.item(0).id;      		params = params.split(':');    			img = {node_id:  params[0],    						 width:   range.item(0).width,    						 height:   range.item(0).height,    						 border:  range.item(0).border,    						 hspace:  range.item(0).hspace,    						 vspace:  range.item(0).vspace,    						 align:  range.item(0).align,    						 alt:  range.item(0).alt,    						 type:  params[1],    						 link_to: params[2]};    			return img;      	}      }      return false    }
meta: 8196	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8196/08d8c853a1bc77288d0a5547db1d47be1c33b65e/htmlarea_extension.js/clean/trunk/shared/js/htmlarea_extension.js