From 35d24c449337f95d0e2174cbed55b53eb6c32ca2 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Thu, 29 Aug 2013 16:23:27 -0700 Subject: when editing templates with CKEditor, protect blocks of perl code, #24331 --- httemplate/elements/htmlarea.html | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'httemplate/elements/htmlarea.html') diff --git a/httemplate/elements/htmlarea.html b/httemplate/elements/htmlarea.html index f9dcffd3f..c98993d40 100644 --- a/httemplate/elements/htmlarea.html +++ b/httemplate/elements/htmlarea.html @@ -6,6 +6,7 @@ Example: 'field' => 'fieldname', 'curr_value' => $curr_value, 'height' => 800, + 'config' => { extraPlugins => 'blockprotect' }, ); @@ -19,21 +20,24 @@ Example: <%init> my %opt = @_; +my $config = { + 'height' => ($opt{height} || 420), + 'startupFocus' => JSON::true, + 'skin' => 'kama', + 'toolbarCanCollapse' => JSON::true, + 'basePath' => $p.'elements/ckeditor/', + 'enterMode' => 2, + %{ $opt{config} || {} }, +}; +$config->{width} = $opt{width} if defined($opt{width}); -- cgit v1.2.1