diff options
author | ivan <ivan> | 2010-07-13 11:10:31 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-07-13 11:10:31 +0000 |
commit | 99af479c12baf1f7da52e06841f0ac4f4832d766 (patch) | |
tree | e73a65542dd1208f9b32123d5ef62eea29270537 /httemplate | |
parent | f9a89c91cab9e85a7ca8dd67782919f8a85c2ebb (diff) |
notices, RT#8324
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/edit/elements/edit.html | 5 | ||||
-rw-r--r-- | httemplate/edit/msg_template.html | 8 | ||||
-rw-r--r-- | httemplate/elements/htmlarea.html | 3 |
3 files changed, 15 insertions, 1 deletions
diff --git a/httemplate/edit/elements/edit.html b/httemplate/edit/elements/edit.html index 0b5ca1737..b19b3618c 100644 --- a/httemplate/edit/elements/edit.html +++ b/httemplate/edit/elements/edit.html @@ -307,6 +307,11 @@ Example: % foreach grep exists($f->{$_}), % qw( hashref agent_virt agent_null agent_null_right ); % +% #htmlarea +% $include_common{$_} = $f->{$_} +% foreach grep exists($f->{$_}), qw( width height ); +% +% % if ( $type eq 'tablebreak-tr-title' ) { % $include_common{'table_id'} = 'TableNumber'. $tablenum++; % } diff --git a/httemplate/edit/msg_template.html b/httemplate/edit/msg_template.html index 6632d027a..68725e243 100644 --- a/httemplate/edit/msg_template.html +++ b/httemplate/edit/msg_template.html @@ -3,8 +3,14 @@ 'table' => 'msg_template', 'viewall_dir' => 'browse', 'fields' => [ 'msgname', - { field=>'body', type=>'htmlarea' }, + 'subject', + { field=>'body', type=>'htmlarea', width=>763 }, ], + 'labels' => { 'msgnum' => 'Template', + 'msgname' => 'Template name', + 'subject' => 'Message subject', + 'body' => 'Message template', + }, ) %> <%init> diff --git a/httemplate/elements/htmlarea.html b/httemplate/elements/htmlarea.html index dca4328ab..f00c77360 100644 --- a/httemplate/elements/htmlarea.html +++ b/httemplate/elements/htmlarea.html @@ -22,6 +22,9 @@ Example: oFCKeditor.BasePath = '<% $p %>elements/fckeditor/'; oFCKeditor.Config['SkinPath'] = '<% $p %>elements/fckeditor/editor/skins/silver/'; +% if ( $opt{'width'} ) { + oFCKeditor.Width = '<% $opt{'width'} %>'; +% } oFCKeditor.Height = '<% $opt{'height'} || 420 %>'; oFCKeditor.Config['StartupFocus'] = true; oFCKeditor.Config['EnterMode'] = 'br'; |