今天老师讲了html在线编辑器实现在网页中实现word功能
常用的在线编辑器有FreeTextBox、CuteEditor、FckEditor、TinyMce、kindEditor、ewebEditor、和新浪博客编辑器等;
下面是FckEditor编辑器代码:
<!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=UTF-8">
<title>Insert title here</title>
</head>
<body>
<?php
//引用FCKeditor.php这个文件,基本的类和数据结构都在这里
include ("fckeditor/fckeditor.php");
//创建FCKeditor对象的实例。myFCKeditor即提交后,接收数据页面 _POST['content']使用
$FCKeditor = new FCKeditor("content");
//FCKeditor所在的位置,这里它的位置就是'FCKeditor' 文件夹
$FCKeditor -> BasePath='./fckeditor/';
//工具按钮设置
$FCKeditor -> ToolbarSet="Default";
//设置它的宽度
$FCKeditor -> Width='500px';
//设置它的高度
$FCKeditor -> Height='600px';
//生成
$FCKeditor -> Create();
?>
<input type="submit" value="提交">
</form>
</body>
</html>