首页 > 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="phprm.com
'
;
$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>

效果图

 

 

教程链接:http://www.phprm.com/develop/9bab8e43bdff7b4f8bf97cecff004f9d.html

随意转载~但请保留教程地址★

标签:none

发表留言