mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Fix incomplete functionality from #3734
#3734 introduced the ability to *create* `mailto:` links with a subject in them, without the ability to *edit* them. This fixes that.
This commit is contained in:
parent
60c97dbf14
commit
51e9923c6c
@ -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]+)\]?(#.*)?$/)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user