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:
parent
259d52f960
commit
294bcb0e11
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue