<%doc> Example: include('/elements/htmlarea.html', 'field' => 'fieldname', 'curr_value' => $curr_value, 'height' => 800, 'config' => { extraPlugins => 'blockprotect' }, ); % #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});