Line 3: | Line 3: | ||
This setting works much like the <base href=""> tag. It defines the base URL to be used for all resources loaded in the editor area, including images and links. | This setting works much like the <base href=""> tag. It defines the base URL to be used for all resources loaded in the editor area, including images and links. | ||
− | This is quite useful when you are working in a Back Office system that produces contents to another site (different domain). So if you set this option to <nowiki>" | + | This is quite useful when you are working in a Back Office system that produces contents to another site (different domain). So if you set this option to <nowiki>"http://www.mysite.com/"</nowiki>, for example, and you have an image with "src" pointing to "/images/myimage.jpg", but you are using the editor in another domain, like <nowiki>"http://bo.mysystem.org"</nowiki>, the images will be loaded from <nowiki>"http://www.mysite.com/images/myimage.jpg"</nowiki>. |
Example: | Example: | ||
<pre>FCKConfig.BaseHref = 'http://www.mysite.com/' ; | <pre>FCKConfig.BaseHref = 'http://www.mysite.com/' ; | ||
</pre> | </pre> |
Revision as of 10:14, 9 January 2008
BaseHref
This setting works much like the <base href=""> tag. It defines the base URL to be used for all resources loaded in the editor area, including images and links.
This is quite useful when you are working in a Back Office system that produces contents to another site (different domain). So if you set this option to "http://www.mysite.com/", for example, and you have an image with "src" pointing to "/images/myimage.jpg", but you are using the editor in another domain, like "http://bo.mysystem.org", the images will be loaded from "http://www.mysite.com/images/myimage.jpg".
Example:
FCKConfig.BaseHref = 'http://www.mysite.com/' ;