Fckeditor使用方法

下载地址 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>

posted on 2016-01-23 10:48  细心耕作  阅读(152)  评论(0)    收藏  举报

导航