jquery 如何获取fckeditor的内容? 我用 var content = $("#FCKeditor1").val()获取不到查看过源文件,editor的id是FCkeditor求赐教 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 当然取不到,id=FCKeditor1的内容在提交时才产生你可以看看他的样例代码 用firebug跟踪一下。输入内容,看能不能看到内容。 我是在submit之后才取值的,网上看了很多办法,不太明白 function getEditorHTMLContents(EditorName){var oEditor = FCKeditorAPI.GetInstance(EditorName);return(oEditor.GetXHTML(true));}//获取编辑器中文字内容function getEditorTextContents(EditorName){var oEditor = FCKeditorAPI.GetInstance(EditorName);return(oEditor.EditorDocument.body.innerText);}//设置编辑器中内容function SetEditorContents(EditorName, ContentStr){var oEditor = FCKeditorAPI.GetInstance(EditorName) ;oEditor.SetHTML(ContentStr) ;}…… 能不能单独设置一个方法处理类里面的所有制异常/错误 PHP的array是真正的数组吗 PHP中数组的元素个素有限制吗? 文本框中的如何保留空格 高手!!高手!!请进来看一下!! cookie怎么这么快失效 菜鸟,求教 [ SQL ] 关于Left Join 的用法 我得表单为什么提交不成功?请高手指点 难道整个论坛里就没有一个人能解决我这个问题,问了几遍没人回答? 关于mysql_fetch_array()的问题?望高手帮我解答哈! php生成迷宫和迷宫寻址算法实例
{
var oEditor = FCKeditorAPI.GetInstance(EditorName);
return(oEditor.GetXHTML(true));
}
//获取编辑器中文字内容
function getEditorTextContents(EditorName)
{
var oEditor = FCKeditorAPI.GetInstance(EditorName);
return(oEditor.EditorDocument.body.innerText);
}
//设置编辑器中内容
function SetEditorContents(EditorName, ContentStr)
{
var oEditor = FCKeditorAPI.GetInstance(EditorName) ;
oEditor.SetHTML(ContentStr) ;
}
……