phpMyEdit-htmlarea extension provides support for htmlArea. htmlArea is a free
WYSIWYG editor replacement for <textarea> fields. For full source code
and documentation, visit http://www.interactivetools.com/
website.
htmlArea requires Microsoft Internet Explorer 5.5 or better on Windows to run.
This is because it makes use of some advanced features of IE5.5 that aren't
available in other browsers yet. It is backwards compatible with other
browsers, though. They will get a regular textarea field instead of a WYSIWYG
editor.
The extension requires a properly installed htmlArea script as it is described
on the metioned website. This extension enables WYSIWYG editing of a textarea
field. In order to use it, you should:
Load htmlArea script in the <head>...</head> section of
your phpMyEdit calling program as described in the htmlArea manual.
Call to phpMyEdit-htmlarea.class.php instead of
phpMyEdit.class.php.
Example 5-1. htmlArea extension enabling require_once 'extensions/phpMyEdit-htmlarea.class.php';
new phpMyEdit_htmlarea($opts);
Add 'html'=>true parameter to the textarea field
definition in your phpMyEdit calling program.
Example 5-2. htmlArea field enabling $opts['fdd']['col_name'] = array(
'name' => 'Column',
'select' => 'T',
'options' => 'ACPVD',
'required' => true,
'textarea' => array(
'html' => true,
'rows' => 11,
'cols' => 81)
);
This extension is contribution of Ezudin Kurtowich
<ekurtovic@ieee.org> from Sarajevo.
|