FCKeditor可视化图像html编辑软件的配置 轻松上手配置

1:  将FCKeditor_2.4.3.rar解压


2将FCKeditor_2.4.3.rar解压出来的单独放到一个文件夹名FCKeditor中 如下这些文件



3 在html文件中加入


想要的编辑器  可以再sample找比如我想要这样的




则把sample2的例子程序的核心代码copy下来 放到想要的jsp文件中

<%@ page language="java" contentType="text/html; charset=GB18030"
    pageEncoding="GB18030"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB18030">
<title>Insert title here</title>


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


window.onload = function()
{
// Automatically calculates the editor base path based on the _samples directory.
// This is usefull only for these samples. A real application should use something like this:
// oFCKeditor.BasePath = '/fckeditor/' ;// '/fckeditor/' is the default value.
// var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
var sBasePath ="<%=request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() +"/fckeditor/"%>";
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.BasePath= sBasePath ;
oFCKeditor.ReplaceTextarea() ;
}


</script>
</head>
<body>
<textarea name="FCKeditor1" rows="10" cols="20"></textarea>
</body>
</html>


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值