I have no idea what is going on here. I want to create a new button, so I started and kept getting "unknown toolbar item xx". Then I tried just using the placeholder plugin as it is already written and I get the same issue.
Here is the code...
<cfscript> fckEditor = createObject("component", "includes.fckeditor.fckeditor"); fckEditor.instanceName = "emailContent"; fckEditor.value = "#form.emailContent#"; fckEditor.basePath = "/includes/fckeditor/"; fckEditor.width = 786; fckEditor.height = 400; fckEditor.toolbarset = 'BasicText'; // corresponds to config in the js file referenced below fckEditor.Config["CustomConfigurationsPath"] = "/admin/assets/fck-cfg.js"; fckEditor.create(); </cfscript>
Re: going nuts trying to make ANY plugin work...
Re: going nuts trying to make ANY plugin work...
I think this is what basically gets output after CF parses it...
Re: going nuts trying to make ANY plugin work...
Please, check the samples.
Re: going nuts trying to make ANY plugin work...
but anyway, I guess it was some sort of caching issue cause all of a sudden it started working
Re: going nuts trying to make ANY plugin work...
Here's the relevant chunk of my javascript:
oFCKeditor.ToolbarSet = 'Basic' ;
oFCKeditor.Create() ;
And here's an additional toolbar set in my fckconfig.js (the main one in the fckeditor directory)
FCKConfig.ToolbarSets["Greg"] = [
['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About'],
'/',
['Style','FontFormat','FontName','FontSize'],
['TextColor','BGColor'],
['FitWindow','ShowBlocks','-','About'] // No comma for the last row.
] ;
FCKConfig.ToolbarSets["Basic"] = [
['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
] ;
If I change this line
oFCKeditor.ToolbarSet = 'Basic' ;
to this
oFCKeditor.ToolbarSet = 'Greg ;
and then redeploy to JBoss and refresh my page I get the message "Toolbar Set "Greg" does not exist".
I've even stopped my server, did a full clean, compile, deploy back to JBoss and the restarted the server. Same issue. It can't seem to find the new tool bar.
I checked the deploy directory for JBoss and the new config with the "Greg" ToolbarSet was deployed. So I'm a bit lost as to how to get this tool bar set to show up.
Thank you for any help you folks can give.
Greg
Re: going nuts trying to make ANY plugin work...
I found the solution in another thread. I had to add
oFCKeditor.BasePath = '/fckeditor/' ;
So the base path wasn't being picked up the way I expected it. I had to define it specifically.
Re: going nuts trying to make ANY plugin work...
I found the solution in another thread. I had to add
oFCKeditor.BasePath = '/fckeditor/' ;
So the base path wasn't being picked up the way I expected it. I had to define it specifically.