I'm trying to add a new toolbarset to my configuration. This appears simple on the face of it.
I keep getting "Blah is not a toolbarset" errors. I tried editing the fckconfig.js file, and I tried putting the new toolbar into a personalized configuration file.
I finally tried deleting fckconfig.js entirely. I was surprised to find that the editor went right on working just fine, regardless.
Any suggestions how to handle this? It seems that FCKeditor is pulling its configuration from some other file than the standard configuration file. This is a PHP5 instance of the editor, and the most barebones usage:
$edit = new FCKEeditor('headline');
$edit->Value = "Enter your headline";
$edit->Create();
You can't get much simpler than that. I even deleted the fckconfig directory and extracted a new one from the tarball, just to be positive that I hadn't changed any environment variables and forgotten. The /fckeditor directory is the vanilla distribution (except that I deleted fckconfig.js).
I've run a find on the entire computer and I'm not coming up with any rogue copies of fckconfig.js. It's all very mysterious.
Since the program works when fckconfig.js is removed and the javascript on the client side clearly recognizes ToolbarSet["Basic"] and ToolbarSet["Default"], then it's loading up a javascript configuration file from someplace. It just doesn't seem to be the standard place.
Any ideas on where it's actually loading its configuration from?
I keep getting "Blah is not a toolbarset" errors. I tried editing the fckconfig.js file, and I tried putting the new toolbar into a personalized configuration file.
I finally tried deleting fckconfig.js entirely. I was surprised to find that the editor went right on working just fine, regardless.
Any suggestions how to handle this? It seems that FCKeditor is pulling its configuration from some other file than the standard configuration file. This is a PHP5 instance of the editor, and the most barebones usage:
$edit = new FCKEeditor('headline');
$edit->Value = "Enter your headline";
$edit->Create();
You can't get much simpler than that. I even deleted the fckconfig directory and extracted a new one from the tarball, just to be positive that I hadn't changed any environment variables and forgotten. The /fckeditor directory is the vanilla distribution (except that I deleted fckconfig.js).
I've run a find on the entire computer and I'm not coming up with any rogue copies of fckconfig.js. It's all very mysterious.
Since the program works when fckconfig.js is removed and the javascript on the client side clearly recognizes ToolbarSet["Basic"] and ToolbarSet["Default"], then it's loading up a javascript configuration file from someplace. It just doesn't seem to be the standard place.
Any ideas on where it's actually loading its configuration from?
Re: FCKEditor config file placement question
I have a similar problem too. Clearing the browser's cache before reloading seems to make it load the modified configuration. But I would like to know how to stop it from being cached by the browser.
Edit: found it in the wiki
http://docs.fckeditor.net/FCKeditor_2.x ... er_Caching