5 include('/elements/htmlarea.html',
6 'field' => 'fieldname',
7 'curr_value' => $curr_value,
9 'config' => { extraPlugins => 'blockprotect' },
15 <SCRIPT TYPE="text/javascript" src="<% $fsurl %>elements/ckeditor/ckeditor.js">
19 <textarea name="<% $opt{'field'} %>"><% $opt{'curr_value'} |h %></textarea>
21 <SCRIPT TYPE="text/javascript">
23 var <% $opt{'field'} %>_editor =
24 CKEDITOR.replace('<% $opt{'field'} %>',
25 <% encode_json($config) %>
34 'height' => ($opt{height} || 420),
35 'startupFocus' => Cpanel::JSON::XS::true,
37 'toolbarCanCollapse' => JSON::true,
38 'removePlugins' => 'elementspath',
39 'basePath' => $fsurl.'elements/ckeditor/',
41 %{ $opt{config} || {} },
43 $config->{width} = $opt{width} if defined($opt{width});