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:
parent
e72325a22a
commit
dd6274152a
@ -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) {
|
||||
|
2
wp-includes/js/tinymce/tiny_mce.js
vendored
2
wp-includes/js/tinymce/tiny_mce.js
vendored
@ -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
Block a user