TinyMCE:API/tinymce.Editor/documentBaseURI
From Moxiecode Documentation Wiki
[edit]
Property: documentBaseURI
[edit]
Summary
This property is an instance of the tinymce.util.URI class pointing to the location of the editable contents. This location can be changed by setting the document_base_url init option.
[edit]
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');
