Merge pull request #4981 from JorisDebonnet/patch-1

Fix incomplete functionality from #3734
This commit is contained in:
Damian Mooyman 2016-01-26 18:52:44 +13:00
commit 5952e38208

View File

@ -888,10 +888,11 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
action = "update";
}
if(href.match(/^mailto:(.*)$/)) {
if(href.match(/^mailto:([^?]*)(\?subject=(.*))?$/)) {
return {
LinkType: 'email',
email: RegExp.$1,
Subject: decodeURIComponent(RegExp.$3),
Description: title
};
} else if(href.match(/^(assets\/.*)$/) || href.match(/^\[file_link\s*(?:\s*|%20|,)?id=([0-9]+)\]?(#.*)?$/)) {