Hi!
I'm using FCKeditor in my CMS, using PHP. Right now, it works alright as long as I'm using the Default or Basic toolbar set.
When I create a custom toolbar set (eg. 'MyToolbar') in my fckconfig.js file and call it from the PHP script I get an error saying "Toolbar set 'MyToolbar' doesn't exist".
So I started playing a bit with the settings, checking the BasePath and renaming the custom toolbar set.
At that point I just reset my toolbar to Basic and tried adjusting that set in the config file. Strangely enough, nothing changed to the toolbar on my page!
Then I renamed the fckconfig.js file to see what would happen - I even removed the file from the entire directory - but it kept loading the Default and Basic toolbar sets like nothing happened!
So now I'm thinking, it's not strange it can't find my custom toolbar set... does it even USE the fckconfig.js file?
I have read the custom toolbar documentation in the support wiki thoroughly but I keep having the same problems.
I've read about cleaning the cache and tried it but it didn't solve it.
I'm really hoping someone in here can help me with this problem.
Thanks a lot in advance!
AmiKaze
I'm using FCKeditor in my CMS, using PHP. Right now, it works alright as long as I'm using the Default or Basic toolbar set.
When I create a custom toolbar set (eg. 'MyToolbar') in my fckconfig.js file and call it from the PHP script I get an error saying "Toolbar set 'MyToolbar' doesn't exist".
So I started playing a bit with the settings, checking the BasePath and renaming the custom toolbar set.
At that point I just reset my toolbar to Basic and tried adjusting that set in the config file. Strangely enough, nothing changed to the toolbar on my page!
Then I renamed the fckconfig.js file to see what would happen - I even removed the file from the entire directory - but it kept loading the Default and Basic toolbar sets like nothing happened!
So now I'm thinking, it's not strange it can't find my custom toolbar set... does it even USE the fckconfig.js file?
I have read the custom toolbar documentation in the support wiki thoroughly but I keep having the same problems.
I've read about cleaning the cache and tried it but it didn't solve it.
I'm really hoping someone in here can help me with this problem.
Thanks a lot in advance!
AmiKaze

Re: Custom toolbar set doesn't exist?
I just can't figure it out on my own.
Thanks again!
AmiKaze.
Re: Custom toolbar set doesn't exist?
Re: Custom toolbar set doesn't exist?
On another site, I was able to just copy the fckconfig.js file, rename it currconfig.js, then put:
$oFCKeditor->Config['CustomConfigurationsPath'] = "../currconfig.js" ;
in my instance call, but this solution isn't working this time around. Regardless of what I put, it's still loading up some mystery default config file. Please let me know if you solve this.
Re: Custom toolbar set doesn't exist?
for whatever it's worth- i'm having the same error/problem. i had this exact setup for my wiki on another site and now that i've transfered it i'm getting this same error.
wondering what's going on with this...
Re: Custom toolbar set doesn't exist?
The frustrating thing is that it loads the custom toolbar without trouble!
And that's when using the wiki documentation for JavaScript.
I'll reply again when I've fixed it for PHP...
Thanks for the replies!
Re: Custom toolbar set doesn't exist?
Re: Custom toolbar set doesn't exist?
Re: Custom toolbar set doesn't exist?
Re: Custom toolbar set doesn't exist?
depending on which version of PHP your server is running, a different file is used to build the fckeditor class.
in the base dir you can find them easily, for example:
fckeditor_php4.php
try editing the settings there (and empty the browswer's cache ,too, because the config file is a .js)
I found that default settings seem to override any custom setting...
:)
Re: Custom toolbar set doesn't exist?
EDIT:
OK, I can at least elaborate on my situation...
1. I built a custom toolbar in the fckconfig.js file named "Slim"
2. I have updated my page, the fckeditor_php4.php, and fckeditor_php4.php with $this->ToolbarSet = 'Slim' ;
Clearly, I'm not hitting the fckconfig.js file. So this should be an easy question. If it can't find the fckconfig.js file, it's grabbing the info from somewhere...where?
I believe this is an issue with my file path, but all other aspects seem to be working fine. Regardless, where does it pull the fckconfig settings if the "normal" location cannot be found?
Re: Custom toolbar set doesn't exist?
Re: Custom toolbar set doesn't exist?
Re: Custom toolbar set doesn't exist?
Deleted the entire fckeditor folder and uploaded a nice new clean copy.
Followed the install to a T using the js solution.
Copied the "MyToolbar" exampled, even with the same toolbar name.
Toolbar not found. What the f? The ONLY two custom edits are:
<script type="text/javascript" src="fckeditor/fckeditor.js"></script>
and
oFCKeditor.BasePath = "/fckeditor/";
Both simple path options, everything else is out of the box. This is unbelievable. I do this as a trade, its not like I'm setting up my mom's web-site for f sakes. I shouldn't be struggling over this, talk about demoralizing.
Re: Custom toolbar set doesn't exist?
Re: Custom toolbar set doesn't exist?
Re: Custom toolbar set doesn't exist?
$oFCKeditor->Config["CustomConfigurationsPath"] = "/path/to/fckeditor/fckconfig.js" ;
Re: Custom toolbar set doesn't exist?
Re: Custom toolbar set doesn't exist?
so if you have named your toolbarset: "myToolbar", it dosen't help to call "mytoolbar".
Re: Custom toolbar set doesn't exist?
I added in a toolbar set in fckconfig.js and called it via the lines below, hope that helps some crazed person to not be so crazed...!!!
<?php
// sets the 'name field'
$oFCKeditor = new FCKeditor('content') ;
//my includes path, relative to where the fckeditor is running from. Im in my admin folder, so need to come out of that and go into my includes folder.
$oFCKeditor->BasePath = '../includes/fckeditor/' ;
// just my cms text pull
$oFCKeditor->Value = stripslashes($legal['content']);
// turn on firefox spellchecker
$oFCKeditor->FirefoxSpellChecker = true ;
// Call the toolbar set in fckconfig.js
$oFCKeditor->ToolbarSet = 'Noba';
// make the editor
$oFCKeditor->Create() ;
?>
Re: Custom toolbar set doesn't exist?
Re: Custom toolbar set doesn't exist?
http://docs.fckeditor.net/FCKeditor_2.x ... er_Caching
Re: Custom toolbar set doesn't exist?
edited DrupalBasic in the file fckeditor.config.js
added the lines
that caused the refresh of my edtior page to give the error DrupalBasic doesn't exist.
so I deleted the lines and refreshed the browser, and lo and behold the error was gone... so maybe the problem lies in one of the above items I added? I haven't had time to try each one individually, and doubt I will... just thought for this might help someone else...
best,
Andy )
Re: Custom toolbar set doesn't exist?
Re: Custom toolbar set doesn't exist?
Re: Custom toolbar set doesn't exist?
<?php
//set the EnterMode to "br" (overwrites the default configuration from fckconfig.js)
$oFCKeditor->Config['EnterMode'] = 'br';
?>
$oFCKeditor->Config['EnterMode'] = 'br';customconfig.js
FCKConfig.CustomConfigurationsPath = '/customconfig.js' ;
Re: Custom toolbar set doesn't exist?
It ends up that FireFox 3 caches the hell out of stuff.
I cleared the cache but it still did not refresh till I closed the browser tab and restarted FireFox.