RTE link behavior fix from andy. fixes #3466

git-svn-id: https://develop.svn.wordpress.org/trunk@4719 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-01-11 03:26:48 +00:00
parent e72325a22a
commit dd6274152a
2 changed files with 3 additions and 1 deletions

View File

@ -558,6 +558,8 @@ TinyMCE_Window.prototype.close = function() {
e.parentNode.removeChild(e);
mcWindows.setDocumentLock(false);
tinyMCE.selectedInstance.getWin().focus();
};
TinyMCE_Window.prototype.onMouseMove = function(e) {

View File

@ -2813,7 +2813,7 @@ TinyMCE_Control.prototype = {
if (tinyMCE.isGecko && this.getSel().isCollapsed) {
focusElm = tinyMCE.getParentElement(focusElm, 'A');
if (focusElm)
if (focusElm && this.getRng(0).endOffset > 0 && this.getRng(0).endOffset != focusElm.innerHTML.length)
this.selection.selectNode(focusElm, false);
}