js获取fck值的代码方法
引入js文件
<script type="text/javascript" src="${basePath}/FCKeditor/fckeditor.js"></script>
fck在线编辑器使用:
<textarea id="partsIntroduce" name="partsIntroduce" cols="100" rows="10" ></textarea>
            <script type="text/javascript"> 
                  var basePath = document.getElementById("basePath").value;
                var oFCKeditor = new FCKeditor('partsIntroduce') ;
                oFCKeditor.BasePath = basePath+"FCKeditor/" ; 
                oFCKeditor.Height = 400; 
                //oFCKeditor.Width = 600; 
                oFCKeditor.ToolbarSet = "Default" ;  
                oFCKeditor.ReplaceTextarea(); 
            </script>
//js获取fck值的方式
var oEditor = FCKeditorAPI.GetInstance('partsIntroduce'); var partsIntroduce = oEditor.GetHTML();
 
                     
                    
                 
                    
                
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号