Class : of_wysiwyg Files : of_wysiwyg.inc : wysiwyg/* A member of OOH Forms Library(PHPlib) Copyright (C) 2002 SANIsoft This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. SANIsoft E-mail Home What is it? ----------- An Add-on to the existing OOH Forms Library, which deals with HTML forms. It builds a wysiwyg editor which makes page editing eaiser. What do I need to use this? ---------------------------- This requires that you have PHPlib installed and working. This wysiwyg editor will be visible only on IE 5 and above. In case of other browsers, a textarea will be seen. How do I install? ----------------- 1. Copy of_wysiwyg.inc to your PHPlib's directory( where your oohforms.inc file is stored). 2. Edit oohforms.inc and include this line at the end of the file. include($_PHPLIB["libdir"] . "of_wysiwyg.inc"); 3. Or you can manually include this file in your PHP(.php,.php3 etc..) files, where ever you require this. include("of_wysiwyg.inc"); 4. Copy the wysiwyg folder to your website's document root. How do I Use the Class? ------------------------- $f->add_element(array("type"=>"wysiwyg", "name"=>"html_content", "value"=>"initial html content", "rows"=>"300", "cols"=>"500", "maxlength"=>"1000", "path"=>"http://URL-to-document-root/wysiwyg")); type type MUST be "wysiwyg". name A string naming this element(say html_content). value The default value of this element. This can contain any html/non-html content. Which is to displayed initially. path Path should point to the Url of wysiwyg folder which you copied to your website's document root. multiple Not allowed. (I dont know why you need this). rows The height of the wysiwyg editor. Default : 300 cols The width of the wysiwyg editor. Default : 500 maxlength The maximum no of characters allowed in the editor. Default : 10000. What else after this? ----------------------- You can access submitted editor-content by "$name_of_the_element". In the above example it is available as $html_content. Bugs and suggestion to ------------------------ Girish Nair girish@sanisoft.com Vinay Kumar vinay@sanisoft.com End of Readme File