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
This commit is contained in:
Sam Minnee 2010-02-23 22:59:23 +00:00
parent be7d3364ac
commit 80179ac669

View File

@ -357,6 +357,9 @@ LinkForm.prototype = {
var linkText = ed.selection.getContent({format : 'html'}).replace(/<\/?a[^>]*>/ig,''); 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:(.*)$/)) { if(href.match(/^mailto:(.*)$/)) {
return { return {
LinkType: 'email', LinkType: 'email',