FCKeidtor 清除编辑器内容的代码
实现代码如下:var editor = FCKeditorAPI.GetInstance("content"); editor.EditorDocument.body.innerHTML="";
实现代码如下:var editor = FCKeditorAPI.GetInstance("content"); editor.EditorDocument.body.innerHTML="";
下载ckeidtor,解压至WebRoot目录下 在要使用ckeditor的页面引入ckeidtor.js 假设的name属性为content,则在其后添加JavaScript代码如下: 实现代码如下: if (typeof CKEDITOR == 'undefined') { document.
此方法支持IE 不支持火狐。可能是因为FCKEidtor的keyup方法在火狐下不被支持。 FCKEditor编辑器换为TextBox,应该就没有问题了。 前台:实现代码如下: 短敘述 (限100中文字) 當前文字個數: JS代码:实现代码如下: function FCKeditor