7 Zeilen
312 B
JavaScript
7 Zeilen
312 B
JavaScript
function urlconverter(url, node, on_save) {
|
|
console.log(tinyMCE.activeEditor);
|
|
if(url.indexOf("[{") === 0) return url;
|
|
return (tinyMCE.activeEditor.settings.relative_urls) ?
|
|
tinyMCE.activeEditor.documentBaseURI.toRelative(url) :
|
|
tinyMCE.activeEditor.documentBaseURI.toAbsolute(url);
|
|
} |