BaseHref

This website contains links to software which is either no longer maintained or will be supported only until the end of 2019 (CKFinder 2). For the latest documentation about current CKSource projects, including software like CKEditor 4/CKEditor 5, CKFinder 3, Cloud Services, Letters, Accessibility Checker, please visit the new documentation website.

If you look for an information about very old versions of CKEditor, FCKeditor and CKFinder check also the CKEditor forum, which was closed in 2015. If not, please head to StackOverflow for support.

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/' ;
This page was last edited on 10 September 2008, at 13:25.