FCKeditor应用

来源:互联网 发布:网络信息化工程公司 编辑:程序博客网 时间:2024/05/22 04:34

 

关于fckeditorjsp页面的基本配置

1. 导入js

<script type="text/javascript" src="/sitebao62p/fckeditor/fckeditor.js"></script>

2. 导入包

<%@ taglib prefix="FCK" uri="http://fckeditor.net/tags-fckeditor"%>

3. fckeditor实例及应用

<FCK:editor id="codeContent" width="600" height="500" basePath="/sitebao62p/fckeditor/"> </FCK:editor> 注意action获取时直接取id即可(一般来讲action取值靠name

fckeditor取值

FCKeditorAPI.GetInstance("codeContent").GetXHTML(true)

fckeditor赋值

FCKeditorAPI.GetInstance("codeContent").SetHTML(“你的内容”);

 


<script type="text/javascript">
$(function(){
$("#submit").click(function(){
if($("#password").val()!=$("#password1").val()){
alert("密码必须一致");
return false;
}else{
$("#frm1").submit();
alert("修改成功!");
}

});
});

</script>

 

原创粉丝点击