So, simply how to make an FCKEditor?
I have tried and tried and tried amd tried just to get one up. Nothing.
The "deocumentation" is a mystery.
So they just have copy/paste stuff like
<script type="text/javascript">
var oFCKeditor = new FCKeditor('FCKeditor1');
oFCKeditor.BasePath = "/fckeditor/";
oFCKeditor.Create();
</script>
No. I want real documentation that tells me what the classes are, what the constructor is, what the arguments to the constractor are, what they all mean. What the member functions are, what the arguments to the member functions are.
You know, something like http://extjs.com/deploy/dev/docs/ which actually tell you everything you need to know.
I tried the suggested
var div = document.getElementById("myFCKeditor");
var fck = new FCKeditor("myFCKeditor");
div.innerHTML = fck.CreateHtml();
Where are all the large Javascript files that a large editor like this needs? Surely it can't just be fckeditor.js? How can that contain an editing class? I looked at it, and it is not a class definition.
And http://docs.fckeditor.net/FCKeditor_2.x ... on_Options
so is it a global variable called BaseHref, or a global variable called sFCKeditorBaseHref?
And why global variables? They are bad. Why not an actual CONFIGURATION object to a CONSTRUCTOR?
Can it REALLY be this difficult?
Fri, 10/24/2008 - 21:56
#1
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!???
Read
Re: Make it work!???
GODS SAKE!
Where do you think i just camew ffrom.
It is USELESS.
USELESS.
It has no concrete information about WHAT is actually WHAT.
Proper docs: http://extjs.com/deploy/dev/docs/
I've been through http://docs.fckeditor.net/FCKeditor_2.x ... JavaScript
It just does NOTHING WHATDSOEVER.
RANDOM variables pointing to random URLS. Where is just the CLASS DEFINITION of the FCKEditor class?
I just want to include THAT file, and instantiate the class.
WHY HAS someone made it difficult and weird?
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
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...?
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...