I mean whats that fckeditor.html file all about? I don't want any HTML file, I just want an editor Javascript object to be created!
And it just randomly decide to load /FCKeditor/editor/fckeditor.html
Which is not available. There IS no /FCKEditor directory. So, just Why would it INVENT the idea to try to find an HTML file that I don't want at a directory that it INVENTS?
Does it HAVE HAVE HAVE HAVEEEEEEE to be so difflcult and obscure?
I randomly bashed things, I forget what until it ran some CODE.
Then it dropped out in a compressed, obfuscated (WHY obfuscated?!) file "C not defined". Well, it turns OUT that the incantation that must be used is
this.FCKeditor.Config.ToolbarLocation = 'In';
That is Just So. What we have to do. No explanation. It just IS.
Now it's alerting "Toolbar set "Default" doesn't exist".
Why? What doesn't exist?
So, I even did
this.FCKeditor.Config.ToolbarSets = {"Default": [
['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
'/',
['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['Link','Unlink','Anchor'],
['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'],
'/',
['Style','FontFormat','FontName','FontSize'],
['TextColor','BGColor'],
['FitWindow','ShowBlocks','-','About'] // No comma for the last row.
]};
And it still alerts that.
No I'm the kind of guy who will step[ through hundreds of lines of code to find out how the internals work, but this is just too much. It's too obscure, code is jumped into loaded, and run in an undebuggable way.
I managed to find the alert statement in the obfuscated code, split the line so I can set a breakpoint in Firebug, and look what is not defined.
The variable FCKConfig (Where does that come from) contains the property ToolbarSets. But it is not that object. It's the string "[object] [object]" My whole configuration is
How an it just be so difficult? How? How can people USE such a thing? When it jkust won'[t work, won't tell you why it won't work, can't be debugged...?
The FCKeditor has a source tree and a "compiled" version; the "compiled" version runs faster, but you can switch to the "source" version by copying editor/fckeditor.original.html into editor/fckeditor.html.
The files under editor/_source are then used instead of the "compiled" version.
If it's complaining about the Toolbar set 'Default' not existing, it's because it doesn't exist - in the fckconfig.js file. It's in there by default, so there might be a problem with your config file...
Re: Make it work!???
And it just randomly decide to load /FCKeditor/editor/fckeditor.html
Which is not available. There IS no /FCKEditor directory. So, just Why would it INVENT the idea to try to find an HTML file that I don't want at a directory that it INVENTS?
Re: Make it work!???
Re: Make it work!???
http://extjs.com/deploy/dev/docs/
http://docs.fckeditor.net/FCKeditor_2.x ... JavaScript
Re: Make it work!???
I randomly bashed things, I forget what until it ran some CODE.
Then it dropped out in a compressed, obfuscated (WHY obfuscated?!) file "C not defined". Well, it turns OUT that the incantation that must be used is
this.FCKeditor.Config.ToolbarLocation = 'In';
That is Just So. What we have to do. No explanation. It just IS.
Now it's alerting "Toolbar set "Default" doesn't exist".
Why? What doesn't exist?
So, I even did
this.FCKeditor.Config.ToolbarSets = {"Default": [ ['Source','DocProps','-','Save','NewPage','Preview','-','Templates'], ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'], ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], ['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'], '/', ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'], ['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], ['Link','Unlink','Anchor'], ['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'], '/', ['Style','FontFormat','FontName','FontSize'], ['TextColor','BGColor'], ['FitWindow','ShowBlocks','-','About'] // No comma for the last row. ]};And it still alerts that.
No I'm the kind of guy who will step[ through hundreds of lines of code to find out how the internals work, but this is just too much. It's too obscure, code is jumped into loaded, and run in an undebuggable way.
I managed to find the alert statement in the obfuscated code, split the line so I can set a breakpoint in Firebug, and look what is not defined.
The variable FCKConfig (Where does that come from) contains the property ToolbarSets. But it is not that object. It's the string "[object] [object]"
My whole configuration is
this.FCKeditor = new FCKeditor( element ); this.FCKeditor.Config.ToolbarSet = "Default"; this.FCKeditor.Config.ToolbarSets = {"Default": [ ['Source','DocProps','-','Save','NewPage','Preview','-','Templates'], ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'], ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], ['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'], '/', ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'], ['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], ['Link','Unlink','Anchor'], ['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'], '/', ['Style','FontFormat','FontName','FontSize'], ['TextColor','BGColor'], ['FitWindow','ShowBlocks','-','About'] // No comma for the last row. ]}; this.FCKeditor.Config.ToolbarLocation = 'In'; this.FCKeditor.Config['SkinPath'] = this.sFCKeditorSkinPath; this.FCKeditor.Config['PreloadImages'] = this.sFCKeditorSkinPath + 'images/toolbar.start.gif' + ';' + this.sFCKeditorSkinPath + 'images/toolbar.end.gif' + ';' + this.sFCKeditorSkinPath + 'images/toolbar.bg.gif' + ';' + this.sFCKeditorSkinPath + 'images/toolbar.buttonarrow.gif'; this.FCKeditor.BasePath = this.sFCKeditorBasePath; this.FCKeditor.Config.CustomConfigurationsPath = ''; this.FCKeditor.Config.PluginsPath = this.sFCKeditorBasePath; this.FCKeditor.Config.ContextMenu = {}; this.FCKeditor.BasePath = this.sFCKeditorBasePath; this.FCKeditor.ReplaceTextarea();How an it just be so difficult? How? How can people USE such a thing? When it jkust won'[t work, won't tell you why it won't work, can't be debugged...?
Re: Make it work!???
The FCKeditor has a source tree and a "compiled" version; the "compiled" version runs faster, but you can switch to the "source" version by copying editor/fckeditor.original.html into editor/fckeditor.html.
The files under editor/_source are then used instead of the "compiled" version.
If it's complaining about the Toolbar set 'Default' not existing, it's because it doesn't exist - in the fckconfig.js file. It's in there by default, so there might be a problem with your config file...