documentBaseURI

public documentBaseURI : tinymce.util.URI
URI object to document configured for the TinyMCE instance.

Examples

// Get relative URL from the location of document_base_url
tinyMCE.activeEditor.documentBaseURI.toRelative('/somedir/somefile.htm');

// Get absolute URL from the location of document_base_url
tinyMCE.activeEditor.documentBaseURI.toAbsolute('somefile.htm');