tinymce-editor/out/scripts/urlConverter.js

7 lines
312 B
JavaScript
Raw Normal View History

2023-04-05 08:27:08 +02:00
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);
}