diff --git a/modules/jquery.wikiEditor.dialogs.config.js b/modules/jquery.wikiEditor.dialogs.config.js index 7b543538..ac2be495 100644 --- a/modules/jquery.wikiEditor.dialogs.config.js +++ b/modules/jquery.wikiEditor.dialogs.config.js @@ -471,6 +471,7 @@ $.wikiEditor.modules.dialogs.config = { else insertText = '[[' + target + '|' + escapeInternalText( text ) + ']]'; } else { + target = $.trim( target ); // Prepend http:// if there is no protocol if ( !target.match( /^[a-z]+:\/\/./ ) ) target = 'http://' + target;