From 48e057af81e990ce0d9cc22f7b08ff4b7520fed0 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 15 Nov 2010 18:40:34 +0000 Subject: [PATCH] Auto focus URL field. see #11420 git-svn-id: https://develop.svn.wordpress.org/trunk@16390 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/js/tinymce/plugins/wplink/js/wplink.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/js/tinymce/plugins/wplink/js/wplink.js b/wp-includes/js/tinymce/plugins/wplink/js/wplink.js index c744cdf21a..adec3cb19c 100644 --- a/wp-includes/js/tinymce/plugins/wplink/js/wplink.js +++ b/wp-includes/js/tinymce/plugins/wplink/js/wplink.js @@ -97,7 +97,9 @@ $('.link-panel .wp-tab-panel').delegate('li', 'click', wpLink.selectInternalLink ); $('.wp-tab-panel-pagelinks').delegate('a', 'click', wpLink.selectPageLink ); $('.link-panel .link-search-field').keyup( wpLink.searchInternalLinks ); - + + active.find('input.url-field').focus(); + // If link exists, select proper values. e = ed.dom.getParent(ed.selection.getNode(), 'A'); if ( ! e )