(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | + | 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>"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>. | 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> |
Latest revision as of 12:25, 10 September 2008
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/' ;