From 35c79e0a0787861b1fe41192f9e066e50649d4d4 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 4 Dec 2006 02:35:17 +0000 Subject: [PATCH] Pre-fill http:// when inserting new links. Props andy. fixes #2579 git-svn-id: https://develop.svn.wordpress.org/trunk@4597 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/js/tinymce/themes/advanced/jscripts/link.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/js/tinymce/themes/advanced/jscripts/link.js b/wp-includes/js/tinymce/themes/advanced/jscripts/link.js index 31b38782bd..74045bd5f6 100644 --- a/wp-includes/js/tinymce/themes/advanced/jscripts/link.js +++ b/wp-includes/js/tinymce/themes/advanced/jscripts/link.js @@ -25,7 +25,7 @@ function init() { option.selected = true; } - document.forms[0].href.value = tinyMCE.getWindowArg('href'); + document.forms[0].href.value = tinyMCE.getWindowArg('href') || 'http://'; document.forms[0].linktitle.value = tinyMCE.getWindowArg('title'); document.forms[0].insert.value = tinyMCE.getLang('lang_' + tinyMCE.getWindowArg('action'), 'Insert', true);