Hi.
I am using fckE with php. So far it works. But now I want to customize the toolbar.
Unfortunately this doesn't work.
My php looks like this:
I get the error-message, that 'fckuser-toolbar' can't be found.
Does anybody have an idea, what mistake I made?
Thanx,
tobydom
I am using fckE with php. So far it works. But now I want to customize the toolbar.
Unfortunately this doesn't work.
My php looks like this:
$oFCKeditor = new FCKeditor('content') ;
$oFCKeditor->BasePath = '/fckeditor/' ;
$oFCKeditor->Value = $common->content ;
$oFCKeditor->Width = '100%' ;
$oFCKeditor->Height = '300' ;
$oFCKeditor->Config['CustomConfigurationsPath'] = '/fckuser-config.js' ;
$oFCKeditor->ToolbarSet = 'fckuser-toolbar';
$tmprslt .= $oFCKeditor->CreateHtml() ;
I get the error-message, that 'fckuser-toolbar' can't be found.
Does anybody have an idea, what mistake I made?
Thanx,
tobydom

Re: custom-toolbar cannot be found
I have the same problem and also working with php.
I made a new toolbar in the fckconfig.js and put this in the fckeditor_php5.php and php4 (to be sure)
public function __construct( $instanceName ) { $this->InstanceName = $instanceName ; $this->BasePath = '/fckeditor/' ; $this->Width = '300' ; $this->Height = '200' ; $this->ToolbarSet = 'MyToolBar' ; $this->Value = '' ; $this->Config = array() ; }But same msg, MyToolBar can't be found..
Do you already have a solution?
Or someone else?
Thank you
Didier
Re: custom-toolbar cannot be found
Re: custom-toolbar cannot be found
I am still looking for a solution for my problem.
I spent hours searching, but I have no idea what is wrong.
Perhaps this part is wrong, but I don't know how it is correct:
Any ideas?
Re: custom-toolbar cannot be found
Re: custom-toolbar cannot be found
Some Directory structure info
In fckconfig.js I have this line
Its weird about the '../../' but its the path from the project/FCKeditor.Net_2.6.3/editor directory not the project/FCKeditor.Net_2.6.3 directory. That may be your problem?? :S
In my FCKeditorCustomConfiguration.js file I add some plugins
var sOtherPluginPath = FCKConfig.BasePath.substr(0, FCKConfig.BasePath.length - 7) + 'editor/plugins/' ; FCKConfig.Plugins.Add('equation', 'en', sOtherPluginPath );I add some buttons to the default toolbar sets in the fckconfig.js file.. I haven't got round to doing that in my custom config file yet.
Re: custom-toolbar cannot be found
Re: custom-toolbar cannot be found
Re: custom-toolbar cannot be found
jQueryjQuery FCKEditor Plugin
<script type="text/javascript"> $(function(){ var sBasePath = '/_assets/js/fckeditor/' ; var sSkinPath = sBasePath + 'editor/skins/silver/' ; $.fck.path = sBasePath; $('#nTxtSummary').fck({ //debug: true, config: { CustomConfigurationsPath: '/_assets/js/news-config.js?' + ( new Date() * 1 ), //This keeps the file from caching SkinPath: sSkinPath, }, toolbar: 'Simple', height: 100 }); $('#nTxtArticle').fck({ //debug: true, config: { CustomConfigurationsPath: '../../news-config.js?' + ( new Date() * 1 ), //ToolbarLocation: 'Out:xToolbar', SkinPath: sSkinPath, }, toolbar: 'Full', height: 400 }); }); </script>