Ec (2); require_once (cls. small_editor.php); $ objnewSmallEditor (); $ obj-& gt; setEditor ($ e_form_name, $ e_form_value, $ width, $ height); & lt ;? Php & nbsp; * script ec (2); script
Require_once ('cls. small_editor.php ');
$ Obj = new SmallEditor ();
$ Obj-> setEditor ($ e_form_name, $ e_form_value, $ width, $ height );
/* ===================================================== ==================================
= Copyright agreement:
= GPL (The gnu general public license Version 2, June 1991)
= ------------------------------------------------------------
= File Name: cls. small_editor.php
= Abstract: lightweight HTML editor for PHP5
= Version 1.0
= ------------------------------------------------------------
= Script Written By phpwms Project Team
= Last Update: xinge
= Last date: 2008-07-24
========================================================== =================================== */
! Defined ('in _ sys') and die ('hacking attempt ');
Class SmallEditor {
Public $ editor_dir = 'editor/SMALLeditor /';
Public function _ construct (){
Global $ root_dir;
$ This-> editor_dir = $ root_dir. $ this-> editor_dir;
Ob_start (array ($ this, 'callback '));
}
// Initialization
Private function editorInit (){
$ Str =' '. "\ N ";
$ Str. ='