执行初始化代码?
?
<script type="text/javascript"> window.onload = function(){ var oFCKeditor = new FCKeditor('FCKmessage') ; oFCKeditor.BasePath = "/fckeditor/"; oFCKeditor.Width="100%"; oFCKeditor.Height="400"; oFCKeditor.ReplaceTextarea(); } </script>
?取值:
?
?
var content = FCKeditorAPI.GetInstance("FCKmessage").GetXHTML("true");
?
?
赋值的情况相对比较复杂:
先说一种:
if(oEditor.EditorDocument!=null){ oEditor.EditorDocument.body.innerHTML = "你要赋的值"; }
?