Dotclear


Ignore:
Timestamp:
08/26/18 18:19:14 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Allows textarea settings in widget without HTML editor, even if activated in user prefs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/widgets/class.widgets.php

    r3731 r3825  
    274274                return false; 
    275275            } 
     276        } elseif ($type == 'textarea') { 
     277            // If any, the 4th argument should be an array (key → value) 
     278            $options = @func_get_arg(4); 
    276279        } 
    277280 
     
    316319                break; 
    317320            case 'textarea': 
     321                $class = (isset($s['options']) && isset($s['options']['class']) ? ' ' . $s['options']['class'] : ''); 
    318322                $res .= 
    319323                '<p><label for="' . $wfid . '">' . $s['title'] . '</label> ' . 
    320                 form::textarea(array($iname, $wfid), 30, 8, html::escapeHTML($s['value']), 'maximal') . 
     324                form::textarea(array($iname, $wfid), 30, 8, html::escapeHTML($s['value']), 'maximal' . $class) . 
    321325                    '</p>'; 
    322326                break; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map