summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js/tiny_mce/themes/advanced/jscripts/link.js
diff options
context:
space:
mode:
authorestadtherr <estadtherr@208e9e7b-5314-0410-a742-e7e81cd9613c>2007-05-24 03:49:19 +0000
committerestadtherr <estadtherr@208e9e7b-5314-0410-a742-e7e81cd9613c>2007-05-24 03:49:19 +0000
commita276ec1059086526ffdd6a28675457ac63e608b7 (patch)
treec54523d463bcdefd068405bd7bfc793ac7ac9410 /roundcubemail/program/js/tiny_mce/themes/advanced/jscripts/link.js
parent444e3cc3f15d016327fcf12ea2b1d06ea0b18a1e (diff)
upgrade to TinyMCE v2.1.1.1
git-svn-id: https://svn.roundcube.net/trunk@584 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/tiny_mce/themes/advanced/jscripts/link.js')
-rw-r--r--roundcubemail/program/js/tiny_mce/themes/advanced/jscripts/link.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/roundcubemail/program/js/tiny_mce/themes/advanced/jscripts/link.js b/roundcubemail/program/js/tiny_mce/themes/advanced/jscripts/link.js
index e80f2a436..e195497e1 100644
--- a/roundcubemail/program/js/tiny_mce/themes/advanced/jscripts/link.js
+++ b/roundcubemail/program/js/tiny_mce/themes/advanced/jscripts/link.js
@@ -50,6 +50,14 @@ function init() {
}
}
+function checkPrefix(n) {
+ if (Validator.isEmail(n) && !/^\s*mailto:/i.test(n.value) && confirm(tinyMCE.getLang('lang_is_email')))
+ n.value = 'mailto:' + n.value;
+
+ if (/^\s*www./i.test(n.value) && confirm(tinyMCE.getLang('lang_is_external')))
+ n.value = 'http://' + n.value;
+}
+
function insertLink() {
var href = document.forms[0].href.value;
var target = document.forms[0].target.options[document.forms[0].target.selectedIndex].value;