X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fhtmlarea.html;h=c98993d403dbef6f5299d4af74454e4d81501882;hb=965a053f2a74114c605b50bfefd0dcc168fb1bd5;hp=f18b941901c9903dea412c8241f67a2e442c8eaf;hpb=9b328d940af56b9924a342192ebb0790478fa705;p=freeside.git diff --git a/httemplate/elements/htmlarea.html b/httemplate/elements/htmlarea.html index f18b94190..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,22 +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});