X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fhtmlarea.html;h=c98993d403dbef6f5299d4af74454e4d81501882;hb=81ae0992cf8506c6a77485548ebde25eb946a9a9;hp=d0f26e7051dfcdf4202f790436bbae4022a1fbe3;hpb=87ccff97601d522326f56184a41037278ad328c5;p=freeside.git diff --git a/httemplate/elements/htmlarea.html b/httemplate/elements/htmlarea.html index d0f26e705..c98993d40 100644 --- a/httemplate/elements/htmlarea.html +++ b/httemplate/elements/htmlarea.html @@ -6,6 +6,7 @@ Example: 'field' => 'fieldname', 'curr_value' => $curr_value, 'height' => 800, + 'config' => { extraPlugins => 'blockprotect' }, ); @@ -19,20 +20,24 @@ Example: <%init> my %opt = @_; +my $config = { + 'height' => ($opt{height} || 420), + 'startupFocus' => JSON::true, + 'skin' => 'kama', + 'toolbarCanCollapse' => JSON::true, + 'basePath' => $p.'elements/ckeditor/', + 'enterMode' => 2, + %{ $opt{config} || {} }, +}; +$config->{width} = $opt{width} if defined($opt{width});