Changeset 8
- Timestamp:
- 02/13/05 07:45:00 (8 years ago)
- Files:
-
- 1 modified
-
trunk/plugins/ContextMenu/context-menu.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/ContextMenu/context-menu.js
r1 r8 105 105 elmenus.push(null, 106 106 [ i18n["Modify Link"], 107 function() { editor.execCommand("createlink", true); },107 function() { editor.config.btnList['createlink'][3](editor); }, 108 108 i18n["Current URL is"] + ': ' + link.href, 109 109 config.btnList["createlink"][1] ], … … 206 206 if (selection && !link) 207 207 menu.push(null, [ i18n["Make link"], 208 function() { editor.execCommand("createlink", true); },208 function() { editor.config.btnList['createlink'][3](editor); }, 209 209 i18n["Create a link"], 210 210 config.btnList["createlink"][1] ]); … … 301 301 }; 302 302 var target = HTMLArea.is_ie ? ev.srcElement : ev.target; 303 var ifpos = getPos(self.editor._iframe);303 var ifpos = getPos(self.editor._htmlArea);//_iframe); 304 304 var x = ev.clientX + ifpos.x; 305 305 var y = ev.clientY + ifpos.y; … … 383 383 td1.className = "icon"; 384 384 if (item.__msh.icon) 385 td1.innerHTML = "<img align='middle' src='" + item.__msh.icon + "' />"; 386 var td2 = doc.createElement("td"); 385 { 386 var t = HTMLArea.makeBtnImg(item.__msh.icon, doc); 387 td1.appendChild(t); 388 // td1.innerHTML = "<img align='middle' src='" + item.__msh.icon + "' />"; 389 } 390 var td2 = doc.createElement("td"); 387 391 if (HTMLArea.is_ie) 388 392 td2.unselectable = "on"; … … 415 419 416 420 if (!HTMLArea.is_ie) { 421 /* FIXME: I think this is to stop the popup from running off the bottom of the screen? 417 422 var dx = x + div.offsetWidth - window.innerWidth + 4; 418 423 var dy = y + div.offsetHeight - window.innerHeight + 4; 424 // alert('dy= (' + y + '+' + div.offsetHeight + '-' + window.innerHeight + ' + 4 ) = ' + dy); 419 425 if (dx > 0) x -= dx; 420 426 if (dy > 0) y -= dy; 427 */ 421 428 div.style.left = x + "px"; 422 429 div.style.top = y + "px";
