function setval(){ var info=FCKeditorAPI.GetInstance("info"); if(info.GetXHTML(true)=="please entry content"){ info.SetHTML("111111",true); //this is wrong on IE7.0 //alert(1111111); } else{ info.SetHTML("please entry content"); } } //---------------------------------------------------------- function FCKeditor_OnComplete(){ FCKeditorAPI.GetInstance("info").Events.AttachEvent("OnFocus",setval); } <textarea name="info" id="info">please entry content</textarea> Please help me
Fri, 04/03/2009 - 03:38
#1