jlarios-uwb
-
9/8/2009 11:12:27 AM
FCKEditor Templates work in IE or Firefox but not both
In CMSAdminControls/FCKEditor/editor/dialog/fck_template.html there's some code which confuses me:
/* CMS */ if(FCKBrowserInfo.IsGecko) { oXml.LoadUrl('../' + FCKConfig.TemplatesXmlPath) ; } else { oXml.LoadUrl(FCKConfig.TemplatesXmlPath) ; } /* CMS end */
With this code (which isn't how it is in the standard FCKEditor distribution), I don't see how the template function is supposed to work in both IE and Firefox. I can't put a path anchored to the document root in FCKConfig.TemplatesXmlPath, because the leading '../' will screw it up. Adding or removing '../' to the templatesxmlpath value makes the feature work in IE or Firefox, one at a time, but not both at the same time.
I'll do some more testing to confirm, but I think the IsGecko test should just be removed, and have it only lead the FCKConfig.TempalteXmlPath, without that leading '../'.
|