Hello!
If I recreating fckeditor and changing text, I get error: undefined is null or not object.
In first time, all work normally: I create fck, change text and save.
After recreating, if I again click "Open" button and change text and click Save button I get error.
If I don't change text - I don't get error.
In FF,Opera all work normally, whitout any errors.
Sample code:
//////////////////////
Please Help! My brain is broken!
If I recreating fckeditor and changing text, I get error: undefined is null or not object.
In first time, all work normally: I create fck, change text and save.
After recreating, if I again click "Open" button and change text and click Save button I get error.
If I don't change text - I don't get error.
In FF,Opera all work normally, whitout any errors.
Sample code:
// init fck editor function runfck1() { var div1 = document.getElementById("myFCKeditor1"); var fck = new FCKeditor("myFCKeditor1"); fck.Height = '350'; fck.BasePath = get_path() + "/fckeditor/"; div1.innerHTML = fck.CreateHtml(); } // save button click function save_design() { var oEditor = FCKeditorAPI.GetInstance('myFCKeditor1'); /// THIS METHOD GET ERROR var content = oEditor.GetHTML(true); WebServiceUpdateDesignContent.UpdateDesignContent(shared_place, content, onCompleteUpdateDesignContent, onError, onTimeout); }
//////////////////////
<div id="myFCKeditor1" ></div> <asp:LinkButton EnableViewState="false" ID="Open" runat="server" OnClientClick=runfck1();return false;">Open</asp:LinkButton> <asp:Button ID="ButtonUpdateDesign" runat="server" Text="Записать" EnableViewState="false" OnClientClick="save_design();return false;" UseSubmitBehavior="False" />
Please Help! My brain is broken!
Re: fck 2.6.3. getinstance ie8 problem