使用JS调用FCKeditor,而非动态语言调用(如 PHP ASP等),并赋予一个初始值。如何做?

解决方案 »

  1.   

    设置初始值不就是oFCKeditor.Value = "初始值";            var sBasePath = "";
                var oFCKeditor = new FCKeditor('comment');
                oFCKeditor.BasePath = sBasePath+'FCKeditor/';
                oFCKeditor.Height = 230 ;
                oFCKeditor.ToolbarSet = 'Basic' ;
                oFCKeditor.Config['SkinPath'] = sBasePath + 'FCKeditor/editor/skins/silver/' ;
                oFCKeditor.Value = "";
                oFCKeditor.Create() ;
      

  2.   

    晕,害我搜索了半天。到处都是 oFCKeditor.InsertHtml("_{$data.content}"); 
    //oFCKeditor.SetHTML('_{$data.content}') ; 
    原来直接value就可以了。。 = =#