By the way, im using the PHP class, which is why i dont have the fckeditor.js file. Ive worked out that if i dont put the button from my plugin into the active toolbar set, the error dosent occur, so there must be something wrong with whatever happens when it loads the button.
Although i use the editor to edit HTML I still have all the other files, cfm, asp etc. I'm sure you're right it seems odd that the "fckeditor.js" is not there! There must be a function to show errors somewhere. How about trying the search facility for "errors" in FCKeditor and see what that reveals.
I’ve had a look at the fckeditor.js file. Al it is a JS version of the PHP class that just generates the HTML you need to insert the editor in the page.
The PHP class doesn’t have an equivalent of ShowErrors, I am assuming because its server side and the errors wouldn’t be relevant. Anyway, the only errors that would be hidden with ShowErrors turned off would be errors that occurred while generating the initial HTML which then loads the editor.
The error I am getting happens when it loads up the toolbars and is related to the custom toolbar button that my plug-in adds.
Yeah it is pretty much, but everything in the <?php ?> tags is interpreted by PHP on the server, rather than being sent to the browser. Doesn’t have any affect this problem though.
it looks like you haven't implemented the GetState function for your command:
// manage the plugins' button behavior oGrabar.prototype.GetState = function() { return FCK_TRISTATE_OFF; // default behavior, sometimes you wish to have some kind of if statement here }
RE: FCKeditor works, but is producing a JS error
RE: FCKeditor works, but is producing a JS er
RE: FCKeditor works, but is producing a JS er
RE: FCKeditor works, but is producing a JS error
RE: FCKeditor works, but is producing a JS er
The PHP class doesn’t have an equivalent of ShowErrors, I am assuming because its server side and the errors wouldn’t be relevant. Anyway, the only errors that would be hidden with ShowErrors turned off would be errors that occurred while generating the initial HTML which then loads the editor.
The error I am getting happens when it loads up the toolbars and is related to the custom toolbar button that my plug-in adds.
Thanks so far.
Jack
RE: FCKeditor works, but is producing a JS error
Humour me - just try the comment idea - then I'll shut up, honest LOL
RE: FCKeditor works, but is producing a JS er
Yeah it is pretty much, but everything in the <?php ?> tags is interpreted by PHP on the server, rather than being sent to the browser. Doesn’t have any affect this problem though.Anyone else got any ideas?
RE: FCKeditor works, but is producing a JS er
// manage the plugins' button behavior
oGrabar.prototype.GetState = function()
{
return FCK_TRISTATE_OFF;
// default behavior, sometimes you wish to have some kind of if statement here
}
RE: FCKeditor works, but is producing a JS er
RE: FCKeditor works, but is producing a JS er