Hi,
I just experienced a bad issue.
var FCKinserthtml = function(name) {
this.Name = name;
}
FCKinserthtml.prototype.Execute = function() {
var oEditor = FCKeditorAPI.GetInstance( 'beschreibung' ) ;
var currContent = oEditor.GetXHTML( true ) ;
oEditor.setHTML( currContent + '<p>[HTML]<br><br>[/HTML]</p>' ) ;
}
FCKinserthtml.prototype.GetState = function() {
return FCK_TRISTATE_OFF;
}
FCKCommands.RegisterCommand( 'inserthtml', new FCKinserthtml('inserthtml'));
var oinserthtmlItem = new FCKToolbarButton( 'inserthtml', FCKLang.inserthtmlBtn, null, null, false, true) ;
oinserthtmlItem.IconPath = FCKPlugins.Items['inserthtml'].Path + 'inserthtml.gif' ;
FCKToolbarItems.RegisterItem( 'inserthtml', oinserthtmlItem );
this code just worked fine. When I reloaded the site the plugin crashed and I receive
"Method not support" javascript error (I just knwo this message in germen, sorry).
The code was NOT (I repeat N O T) altered but does not work yet - before the reload it did.
And BTW the documentation is very bad because it does not show the API functions in action.
I start to hate this editor.
Hurga
I just experienced a bad issue.
var FCKinserthtml = function(name) {
this.Name = name;
}
FCKinserthtml.prototype.Execute = function() {
var oEditor = FCKeditorAPI.GetInstance( 'beschreibung' ) ;
var currContent = oEditor.GetXHTML( true ) ;
oEditor.setHTML( currContent + '<p>[HTML]<br><br>[/HTML]</p>' ) ;
}
FCKinserthtml.prototype.GetState = function() {
return FCK_TRISTATE_OFF;
}
FCKCommands.RegisterCommand( 'inserthtml', new FCKinserthtml('inserthtml'));
var oinserthtmlItem = new FCKToolbarButton( 'inserthtml', FCKLang.inserthtmlBtn, null, null, false, true) ;
oinserthtmlItem.IconPath = FCKPlugins.Items['inserthtml'].Path + 'inserthtml.gif' ;
FCKToolbarItems.RegisterItem( 'inserthtml', oinserthtmlItem );
this code just worked fine. When I reloaded the site the plugin crashed and I receive
"Method not support" javascript error (I just knwo this message in germen, sorry).
The code was NOT (I repeat N O T) altered but does not work yet - before the reload it did.
And BTW the documentation is very bad because it does not show the API functions in action.
I start to hate this editor.
Hurga
RE: fckEditor is instable - unuseable
- what do you mean by 'reload the site' -- do you mean refresh the page in your browser, or something else?
- which browser are you using?
- where did the error occur -- which line in your code?
- what method did it say was not supported?
Thanks,
Tom
RE: fckEditor is instable - unuseable
Gee.. i can see the poeople in this community flooding over to help this guy when he insults the fck editor and blames his coding issues on it.
First thing Hugo_gonzales... how can you blame fck editor some on some mod YOUR coding and them expect much help after an attitude like that?
Why dont you try a more professional approach?
RE: fckEditor is instable - unuseable