
2个回答
展开全部
常规的用法:
在页面插入
<script type="text/javascript" src="/editor/fck_editor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor('Content', 730, 450) ;
oFCKeditor.BasePath = "/editor/fck_editor/";
oFCKeditor.ReplaceTextarea();
}
function getFckeditorText(editor_name)
{
var oEditor = FCKeditorAPI.GetInstance(editor_name) ;
returnValue = oEditor.GetXHTML(true);
return returnValue;
}
function checkData(sTargetName) {
document.getElementById(sTargetName).value = getFckeditorText(sTargetName);
//加入其它判断检测输入。
return true;
}
</script>
<form id="form1" name="form1" method="get" onsubmit="return checkData('Content');">
<textarea name="Content" id="Content"></textarea>
<input type="submit">
</form>
在页面插入
<script type="text/javascript" src="/editor/fck_editor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor('Content', 730, 450) ;
oFCKeditor.BasePath = "/editor/fck_editor/";
oFCKeditor.ReplaceTextarea();
}
function getFckeditorText(editor_name)
{
var oEditor = FCKeditorAPI.GetInstance(editor_name) ;
returnValue = oEditor.GetXHTML(true);
return returnValue;
}
function checkData(sTargetName) {
document.getElementById(sTargetName).value = getFckeditorText(sTargetName);
//加入其它判断检测输入。
return true;
}
</script>
<form id="form1" name="form1" method="get" onsubmit="return checkData('Content');">
<textarea name="Content" id="Content"></textarea>
<input type="submit">
</form>

2024-09-02 广告
Play Video 七鑫易维是致力于机器视觉和人工智能领域的高新科技企业,迄今已专注眼球追踪技术的研发、创新与应用超过14年,拥有完全自主知识产权,全球专利总量655余项。 作为眼球追踪技术领域的全球知名品牌,七鑫易维的产品体系覆盖眼动分...
点击进入详情页
本回答由七鑫易维信息技术提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询