tinymce-editor/out/scripts/urlConverter.js

7 lignes
312 B
JavaScript
Brut Vue normale Historique

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