Fix URL in wp-link when editing, props SergeyBiryukov, fixes #18149

git-svn-id: https://develop.svn.wordpress.org/trunk@18474 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2011-07-27 23:02:54 +00:00
parent 24c08b8bf5
commit 3fff132530
3 changed files with 3 additions and 3 deletions

View File

@ -102,7 +102,7 @@ var wpLink;
// If link exists, select proper values. // If link exists, select proper values.
if ( e = ed.dom.getParent(ed.selection.getNode(), 'A') ) { if ( e = ed.dom.getParent(ed.selection.getNode(), 'A') ) {
// Set URL and description. // Set URL and description.
inputs.url.val( e.href ); inputs.url.val( ed.dom.getAttrib(e, 'href') );
inputs.title.val( ed.dom.getAttrib(e, 'title') ); inputs.title.val( ed.dom.getAttrib(e, 'title') );
// Set open in new tab. // Set open in new tab.
if ( "_blank" == ed.dom.getAttrib(e, 'target') ) if ( "_blank" == ed.dom.getAttrib(e, 'target') )

File diff suppressed because one or more lines are too long

View File

@ -262,7 +262,7 @@ function wp_default_scripts( &$scripts ) {
$scripts->add( 'admin-bar', "/wp-includes/js/admin-bar$suffix.js", false, '20110131' ); $scripts->add( 'admin-bar', "/wp-includes/js/admin-bar$suffix.js", false, '20110131' );
$scripts->add_data( 'admin-bar', 'group', 1 ); $scripts->add_data( 'admin-bar', 'group', 1 );
$scripts->add( 'wplink', "/wp-includes/js/tinymce/plugins/wplink/js/wplink$suffix.js", array( 'jquery', 'wpdialogs' ), '20110528' ); $scripts->add( 'wplink', "/wp-includes/js/tinymce/plugins/wplink/js/wplink$suffix.js", array( 'jquery', 'wpdialogs' ), '20110727' );
$scripts->add_data( 'wplink', 'group', 1 ); $scripts->add_data( 'wplink', 'group', 1 );
$scripts->add_script_data( 'wplink', 'wpLinkL10n', array( $scripts->add_script_data( 'wplink', 'wpLinkL10n', array(
'title' => __('Insert/edit link'), 'title' => __('Insert/edit link'),