TINY BLOG > Important changes to Tiny Cloud pricing > Find out more
Return to Tiny.cloud

document_base_url

Contribute to this page

This option specifies the base URL for all relative URLs in the document. The default value is the directory of the current document. If a value is provided, it must specify a directory (not a document) and must end with a "/". This option also interacts with the relative_urls, remove_script_host, and convert_urls options to determine whether TinyMCE returns relative or absolute URLs. The FAQ contains a thorough description and an example page of working with relative/absolute URLs.

Changed in 3.0: This may affect how other paths are interpreted, such as calls to tinyMCE.windowManager.open, so you may want to use absolute paths. The following configuration settings also appear to be affected by the document_base_url setting:

Example of usage of the document_base_url option:

tinyMCE.init({
  document_base_url : "http://www.site.com/path1/"
});

Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.