mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
be7d3364ac
commit
80179ac669
3
javascript/tiny_mce_improvements.js
vendored
3
javascript/tiny_mce_improvements.js
vendored
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user