mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #3535 from manja/3.1
This commit is contained in:
commit
683bde6d82
@ -213,11 +213,12 @@ ss.editorWrappers.tinyMCE = (function() {
|
||||
* {DOMElement}
|
||||
*/
|
||||
cleanLink: function(href, node) {
|
||||
var cb = tinyMCE.settings['urlconverter_callback'];
|
||||
var cb = tinyMCE.settings['urlconverter_callback'],
|
||||
cu = tinyMCE.settings['convert_urls'];
|
||||
if(cb) href = eval(cb + "(href, node, true);");
|
||||
|
||||
// Turn into relative
|
||||
if(href.match(new RegExp('^' + tinyMCE.settings['document_base_url'] + '(.*)$'))) {
|
||||
// Turn into relative, if set in TinyMCE config
|
||||
if(cu && href.match(new RegExp('^' + tinyMCE.settings['document_base_url'] + '(.*)$'))) {
|
||||
href = RegExp.$1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user