X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Fhtmlarea.html;h=dba744e23f23fed6d023c5c256c354b2be924922;hp=f9dcffd3f6be3874b4fce2f9e1d33672872a2ee6;hb=ff27c3f36240aee48ed50153dd5d8fe3ac3f2443;hpb=98d2b25256055abb0dfcb9f586b434474fa97afd diff --git a/httemplate/elements/htmlarea.html b/httemplate/elements/htmlarea.html index f9dcffd3f..dba744e23 100644 --- a/httemplate/elements/htmlarea.html +++ b/httemplate/elements/htmlarea.html @@ -6,12 +6,13 @@ Example: 'field' => 'fieldname', 'curr_value' => $curr_value, 'height' => 800, + 'config' => { extraPlugins => 'blockprotect' }, ); % #init - % #editor @@ -19,21 +20,26 @@ Example: <%init> my %opt = @_; +my $config = { + 'height' => ($opt{height} || 420), + 'startupFocus' => Cpanel::JSON::XS::true, + 'skin' => 'kama', + 'toolbarCanCollapse' => JSON::true, + 'removePlugins' => 'elementspath', + 'basePath' => $fsurl.'elements/ckeditor/', + 'enterMode' => 2, + %{ $opt{config} || {} }, +}; +$config->{width} = $opt{width} if defined($opt{width});