程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 網頁編程 >> PHP編程 >> 關於PHP編程 >> 新浪在線可視化編輯器PHP版

新浪在線可視化編輯器PHP版

編輯:關於PHP編程

調用
<?php
/**
 * 新浪博客編輯器PHP版封裝類調用方法
 *
 */
header(\'Content-Type:text/html;Charset=utf-8;\');
include_once(\'sinaEditor.class.php\');
extract($_POST);
extract($_GET);
unset($_POST,$_GET);
$act==\'subok\' && die("提交的內容是:<br>".htmlspecialchars($gently_editor));
$editor=new sinaEditor(\'gently_editor\');
$editor->Value=\'<h2>這個是一個測試!</h2><br>
我的博客:<a href="111cn.cn\';
$editor->BasePath=\'.\';
$editor->Height=500;
$editor->Width=700;
$editor->AutoSave=false;//是否自動保存!!
?>
<form name="form1" id="form1" method="post" action="index.php?act=subok">
<?
    $editor->Create();
?>
<input type="submit" value="提交">
<input type="reset" value="重置">
</form>

效果圖

下載地址:點擊下載

 

 

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved