Hello,
I have been using FCKeditor for a few years now. I am trying to integrate CKEditor into our system. However, it seems to fail to load because the host page has a <base href="http://..."> in the head. If I remove this CKEditor loads. But I need this <base> tag in this page in order for the rest of the page to work correctly.
Yes, I know there is a BaseHref config option for the editable area, and I need to use that too. But I also need the <base> tag in the head in order to load the graphics that are NOT in the editable area.
Anyone know of a work around?
The host page is:
http://www.domain.com/folder/editor/index.asp
Here's the 2 relavant lines in the head:
<base href="http://www.domain.com/folder">
<script type="text/javascript" src="editor/ckeditor/ckeditor.js"></script>
Here's what I'm using to invoke the editors:
CKEDITOR.replace( 'editleftcol',
{
sharedSpaces :
{
top : 'topSpace',
bottom : 'bottomSpace'
},
// Removes the maximize plugin as it's not usable
// in a shared toolbar.
// Removes the resizer as it's not usable in a
// shared elements path.
removePlugins : 'maximize,resize'
} );
CKEDITOR.replace( 'editrightcol',
{
sharedSpaces :
{
top : 'topSpace',
bottom : 'bottomSpace'
},
// Removes the maximize plugin as it's not usable
// in a shared toolbar.
// Removes the resizer as it's not usable in a
// shared elements path.
removePlugins : 'maximize,resize'
} );
Any help would be greatly appreciated.
Mike
Tue, 05/04/2010 - 18:53
#1

Re: CK won't load if page has <base> tag.
Found a work around here:
viewtopic.php?f=11&t=17975&hilit=base+tag
Basically, but full http:// path in the script tag for ckeditor.js
<script type="text/javascript" src="http://www.domain.com/folder/editor/ckeditor/ckeditor.js"></script>