首页 > 其他 > 详细

Fckeditor使用方法

时间:2016-01-23 12:43:09      阅读:129      评论:0      收藏:0      [点我收藏+]

下载地址 http://ckeditor.com/download

<?php
require(‘../fckeditor/fckeditor.php‘);
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>用PHP调用FCKeditor</title>
</head>
<body>
    <form method="POST" name="example" action="">
<?php
$oFCKeditor = new FCKeditor(‘FCKeditor1‘);    //创建FCKeditor实例 可创建多个实例
$oFCKeditor->BasePath = ‘../fckeditor/‘;    //设置FCKeditor目录地址

$oFCKeditor->Width=‘100%‘;
$oFCKeditor->Height=‘300px‘;
$oFCKeditor->Create();    //创建编辑器
?>
        <input type="submit" name="ok" value="提交" />
    </form>
<?php
echo ‘<pre>‘;
print_r($_POST);
?>
</body>
</html>

技术分享

Fckeditor使用方法

原文:http://www.cnblogs.com/weishang/p/5152938.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!