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