From 80179ac6697737fd0384c978da424af782297377 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Tue, 23 Feb 2010 22:59:23 +0000 Subject: [PATCH] BUGFIX #3458: Don't show javascript:mctmp(0) URLs in URL editor git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@99745 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/tiny_mce_improvements.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/javascript/tiny_mce_improvements.js b/javascript/tiny_mce_improvements.js index 56db27bec..51be96439 100755 --- a/javascript/tiny_mce_improvements.js +++ b/javascript/tiny_mce_improvements.js @@ -357,6 +357,9 @@ LinkForm.prototype = { var linkText = ed.selection.getContent({format : 'html'}).replace(/<\/?a[^>]*>/ig,''); + // Get rid of TinyMCE's temporary URLs + if(href.match(/^javascript:\s*mctmp/)) href = ''; + if(href.match(/^mailto:(.*)$/)) { return { LinkType: 'email',