First off, FCKEditor is wonderful! I've used it for years, and it meets our needs just perfectly - thanks!
But, there is one thing that could help us a ton - being able to specify where it loads it's toolbar icons, css files, etc. from - can I do that?
We have two httpd servers running on one physical machine - images, css files, .js files, etc., get served up from http://www.mysite.com, which is a plain vanilla apache web server. Our application server runs on myapp.mysite.com, and it's optimized to serve up my application - I hate wasting precious resources serving up silly little things like images and css files from our heavy-duty app server.
Our app server currently serves up a page from myapp.mysite.com with FCKEditor in it, and it currently works just great like this:
<script type="text/javascript" src="http://myapp.mysite.com/FCKeditor2.5.1/fckeditor.js"></script>
<script type="text/javascript">
<!--
window.onload = function() {
var oFCKeditor = new FCKeditor("TA");
oFCKeditor.BasePath = "http://myapp.mysite.com/FCKeditor2.5.1/";
oFCKeditor.Height = "300";
oFCKeditor.ReplaceTextarea();
}
//-->
However, I'd like to be able to serve up all .css, .gif, etc. files from http://www.mysite.com, rather than myapp.mysite.com, but any combination I've tried with changing the where the fckeditor.js file is loaded from, or the "BasePath" is set to, gives me a JavaScript security warning. So my question really boils down to this:
Can I load fckeditor.js (and all subsequent .js files that it needs) from myapp.mysite.com, and then tell FCKEditor that it should in turn load all .css files and images from http://www.mysite.com, to cut down on the use of myapp.mysite.com? I understand that JavaScript security rules would probably prevent me from loading the other .js files needed by FCKEditor from http://www.mysite.com (right?).
Hopefully that makes sense...
Thanks in advance!
Kevin
Thu, 02/28/2008 - 22:51
#1
Re: Loading toolbar icons, etc. from a different sub-domain?