在html中引入在線編輯器的代碼

 

<form action="disp.php" method="post">

<?php

//引用FCKeditor.php這個文件,基本的類和數據結構都在這裏

include ("fckeditor/fckeditor.php");

//創建FCKeditor對象的實例。myFCKeditor即提交後,接收數據頁面 _POST['myFCKeditor']使用

$FCKeditor = new FCKeditor("content");

//FCKeditor所在的位置,這裏它的位置就是'FCKeditor' 文件夾

$FCKeditor -> BasePath='./fckeditor/';

//工具按鈕設置

$FCKeditor -> ToolbarSet="Default";

//設置它的寬度

$FCKeditor -> Width='500px';

//設置它的高度

$FCKeditor -> Height='300px';

//生成

$FCKeditor -> Create();

?>

<input type="submit" value="提交">

</form>

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章