| version 1.1, 2003/05/08 23:43:54 |
version 1.2, 2003/05/12 22:25:10 |
|
|
| <?php
|
<?php
|
|
|
|
| /*
|
/*
|
| * phpMyEdit - instant MySQL table editor and code generator
|
* phpMyEdit - MySQL table editor
|
| *
|
*
|
| * extensions/phpMyEdit-htmlarea.class.php - phpMyEdit Htmlarea extension
|
* extensions/phpMyEdit-htmlarea.class.php - phpMyEdit htmlArea extension
|
| * (Htmlarea is a free WYSIWYG textarea replacement from
|
|
| * www.interactivetools.com)
|
|
| * ____________________________________________________________
|
* ____________________________________________________________
|
| * Contribution of Ezudin Kurtowich <ekurtovic@ieee.org>, Sarajevo, B&H
|
*
|
| |
* Contribution of Ezudin Kurtowich <ekurtovic@ieee.org>, Sarajevo
|
| |
* Copyright (c) 2003 Platon SDG, http://www.platon.sk/
|
| |
* All rights reserved.
|
| |
*
|
| |
* See README file for more information about this software.
|
| |
* See COPYING file for license information.
|
| |
*
|
| |
* Download the latest version from
|
| |
* http://www.platon.sk/projects/phpMyEdit/
|
| */
|
*/
|
|
|
|
| |
/* $Platon: phpMyEdit/extensions/phpMyEdit-report.class.php,v 1.4 2003/05/01 21:42:48 nepto Exp $ */
|
| |
|
| /*
|
/*
|
| REQUIREMENTS:
|
OVERVIEW
|
|
|
--------
|
| The extension requires a properly installed Htmlarea script
|
|
| as described on the www.interactivetools.com site
|
|
|
|
|
| |
htmlArea is a free WYSIWYG textarea replacement from
|
| |
http://www.interactivetools.com/ website.
|
|
|
|
| USAGE:
|
REQUIREMENTS
|
| |
------------
|
| |
|
| |
The extension requires a properly installed htmlArea script
|
| |
as described on the http://www.interactivetools.com/ site.
|
| |
|
| |
USAGE
|
| |
-----
|
|
|
|
| This extension enables WYSIWYG editing of a textarea field.
|
This extension enables WYSIWYG editing of a textarea field.
|
| In order to use it, you should:
|
In order to use it, you should:
|
|
|
|
| 1. Load htmlarea script in the <head>...</head> section of your
|
1. Load htmlArea script in the <head>...</head> section of your
|
| phpMyEdit calling program as described in the htmlarea manual.
|
phpMyEdit calling program as described in the htmlarea manual.
|
|
|
|
| NOTE: To avoid an unwanted side effect in css style produced by
|
NOTE: To avoid an unwanted side effect in css style produced
|
| phpMyEditSetup.php, delete 'table-width:100%' property!
|
by phpMyEditSetup.php, delete 'table-width:100%' property.
|
|
|
|
| 2. Add 'html'=>true parameter to the textarea field definition
|
2. Call to phpMyEdit-htmlarea.class.php instead
|
| in your phpMyEdit calling program.
|
of phpMyEdit.class.php.
|
|
|
|
| Example:
|
Example:
|
|
|
|
| $opts['fdd']['body'] = array(
|
|
| 'name' => 'Content',
|
|
| 'select' => 'T',
|
|
| 'options' => 'ACPVD',
|
|
| 'maxlen' => 65535,
|
|
| 'textarea' => array(
|
|
| 'html' => true,
|
|
| 'rows' => 11,
|
|
| 'cols' => 81),
|
|
| 'required' => true,
|
|
| 'sort' => true
|
|
| );
|
|
|
|
|
|
|
|
| 3. Call to phpMyEdit-htmlarea.class.php instead of phpMyEdit.class.php
|
|
|
|
|
| Example:
|
|
| require_once 'extensions/phpMyEdit-htmlearea.class.php';
|
|
| new phpMyEdit-htmlarea($opts);
|
|
|
|
|
| |
require_once 'extensions/phpMyEdit-htmlarea.class.php';
|
| |
new phpMyEdit-htmlarea($opts);
|
|
|
|
| |
3. Add 'html'=>true parameter to the textarea field definition
|
| |
in your phpMyEdit calling program.
|
|
|
|
| |
Example:
|
| |
|
| |
$opts['fdd']['body'] = array(
|
| |
'name' => 'Content',
|
| |
'select' => 'T',
|
| |
'options' => 'ACPVD',
|
| |
'maxlen' => 65535,
|
| |
'required' => true,
|
| |
'textarea' => array(
|
| |
'html' => true,
|
| |
'rows' => 11,
|
| |
'cols' => 81)
|
| |
);
|
| */
|
*/
|
|
|
|
| require_once dirname(__FILE__).'/../phpMyEdit.class.php';
|
require_once dirname(__FILE__).'/../phpMyEdit.class.php';
|