hi,
my form restore data by ajax call with jquery.
i get the data before complete load of fckeditor
so i cant normally get the instance and invok SetHTML...
instead i consider the following
i tried too take set the value by the constructor.
non of the way set the value..fck stay empty.
so i made some trick. before the call oEditor.ReplaceTextarea();
i set some value to the text area $('#description').val("<b>some html</b>");
it seem that is the solution but then i faced with a big problem
when the form is loaded once the recreation of fck is lack of somthing
so, the implamtntion is not wall!
i need help!
my form restore data by ajax call with jquery.
i get the data before complete load of fckeditor
so i cant normally get the instance and invok SetHTML...
instead i consider the following
var oEditor = new FCKeditor('description');
oEditor.BasePath = '<%= ResolveUrl("~/fckeditor/") %>';
oEditor.Value = "<b>some html</b>";
oEditor.Height = '400';
oEditor.Config['AutoDetectLanguage'] = false;
oEditor.Config['DefaultLanguage'] = "he";
oEditor.Config['ContentLangDirection'] = "rtl";
oEditor.ReplaceTextarea();
i tried too take set the value by the constructor.
non of the way set the value..fck stay empty.
so i made some trick. before the call oEditor.ReplaceTextarea();
i set some value to the text area $('#description').val("<b>some html</b>");
it seem that is the solution but then i faced with a big problem
when the form is loaded once the recreation of fck is lack of somthing
so, the implamtntion is not wall!
i need help!

Re: Set intial value to js created instance
the API docs
function FCKeditor_OnComplete( editorInstance ) { editorInstance.Events.AttachEvent( 'OnAfterSetHTML', checkFields ) ; editorInstance.SetHTML(window.opener.j); }Re: Set intial value to js created instance
i know about FCKeditor_OnComplete and i tried it to. actually before the erailer code in my first post.
but then i face with a diffrent problem.
FCKeditor_OnComplete invoke only when FCKeditor created.
it seems to be good but when user request for visited page
then FCKeditor do not recreated and FCKeditor_OnComplete do not invoke.
Re: Set intial value to js created instance
when i said that it doesnt work it aws when i
created fceditor instance by server tag!
but now when the instance is creating in js
everithig work like excpectd! thank god!