TinyMCE:Configuration/default document

From Moxiecode Documentation Wiki

Jump to: navigation, search

Option: default_document

(Requires: 2.1.1, Removed in: 3.0)

This option enables you to specify what file to load into TinyMCE by default this option is ONLY to be used to work around a cross domain issue with subdomains in IE. This is NOT to be used to load in a HTML document to edit. If you don't understand what this option is for don't use it.

For example if you use TinyMCE on a domain like www.mysite.com but want to load JS files from static.mysite.com since it uses a super fast HTTP server you need to load a HTML file that is contained in the documents domain and not in the scripts domain. So simply copy the blank.htm file from TinyMCE's tiny_mce directory to the www.mysite.com domain.

Example of usage of the default_document option:

<script type="text/javascript" src="http://static.mysite.com/js/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
	...
	default_document : "http://www.mysite.com/blank.htm",
});
</script>
Personal tools