TinyMCE:API/tinymce.Editor/baseURI

From Moxiecode Documentation Wiki

Jump to: navigation, search

Property: baseURI

Summary

This property is an instance of the tinymce.util.URI class pointing to the location of the tiny_mce.js file.

Examples

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

// Get absolute URL from the location of the API
tinyMCE.activeEditor.baseURI.toAbsolute('somefile.htm');
Personal tools