您好,欢迎访问一九零五行业门户网

新浪编辑器的调用

require_once('cls.small_editor.php');
$obj = new smalleditor();
$obj -> seteditor($e_form_name,$e_form_value,$width,$height);
editor_dir = $root_dir.$this -> editor_dir;
                        ob_start(array($this,'callback'));
                }
// 初始化
                private function editorinit() {
                        $str  = '%20editor_dir.'comm.css>'.\n;
                        $str .= ''.\n;
                        $str .= ''.\n;
                        $str .= ''.\n;
                        return $str;
                }
// 回调替换
                public function callback($buffer) {
                        return (str_replace(array('','',''),$this -> editorinit().'', $buffer));
                }
public function seteditor($e_form_name = 'my_text_area',$e_form_value = '',$e_toolbar = 'adminmode',$height='',$width = '100%') {
                        !$height and $height = 230;
                        !strstr($height,'%') and $height = $height.'px';
                        !strstr($width,'%')  and $width  = $width.'px';
                        return                 {$e_form_value}
eof;
                }
        }
?>新浪编辑器的调用
其它类似信息

推荐信息