X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fhtmlarea.html;h=dba744e23f23fed6d023c5c256c354b2be924922;hb=7f5987962e31731e57ddeabb1fd20d65324f7e72;hp=f27c4b5e677318b0012fd953dc2fca163fb9e69f;hpb=40a7b3dc653e099f7bd0bd762b649b04c4432db2;p=freeside.git
diff --git a/httemplate/elements/htmlarea.html b/httemplate/elements/htmlarea.html
index f27c4b5e6..dba744e23 100644
--- a/httemplate/elements/htmlarea.html
+++ b/httemplate/elements/htmlarea.html
@@ -6,31 +6,40 @@ Example:
'field' => 'fieldname',
'curr_value' => $curr_value,
'height' => 800,
+ 'config' => { extraPlugins => 'blockprotect' },
);
%doc>
% #init
-
% #editor
-
<%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});
%init>