8
0
tinymce-editor/out/scripts/urlConverter.js
2023-04-08 21:49:05 +02:00

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);
}