Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Tuesday, September 21, 2021
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Documentation  »  HTML  »  phpMyEdit-htmlarea

5.4. phpMyEdit-htmlarea

Warning

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.


Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy