Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Utorok, 30. november 2021
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Dokumentácia  »  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
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov