5.4. phpMyEdit-htmlarea


This extension is obsolete. Use integrated phpMyEdit-mce-cal extension instead.

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:

  1. Load htmlArea script in the <head>...</head> section of your phpMyEdit calling program as described in the htmlArea manual.

  2. 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);

  3. 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 from Sarajevo.

Bootstrap phpMyEdit PHP Form Generator