TinyMCE:API/tinymce.Editor/documentBaseURI

From Moxiecode Documentation Wiki

Jump to: navigation, search

Property: documentBaseURI

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.

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');
Personal tools