RTE link behavior fix from andy. fixes #3466

git-svn-id: http://svn.automattic.com/wordpress/trunk@4719 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-01-11 03:26:48 +00:00
parent 259d52f960
commit 294bcb0e11
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);
}