finish adding a feature to easily list all email addresses for an agent & send them...
[freeside.git] / httemplate / elements / htmlarea.html
1 <%doc>
2
3 Example:
4
5   include('/elements/htmlarea.html',
6             'field'      => 'fieldname',
7             'curr_value' => $curr_value,
8             'height'     => 800,
9          );
10
11 </%doc>
12
13 % #init
14 <SCRIPT TYPE="text/javascript" src="<% $p %>elements/fckeditor/fckeditor.js">
15 </SCRIPT>
16
17 % #editor
18 <SCRIPT TYPE="text/javascript">
19
20   var oFCKeditor = new FCKeditor('<% $opt{'field'} %>');
21   oFCKeditor.Value = <% $opt{'curr_value'} |js_string %>;
22
23   oFCKeditor.BasePath = '<% $p %>elements/fckeditor/';
24   oFCKeditor.Config['SkinPath'] = '<% $p %>elements/fckeditor/editor/skins/silver/';
25   oFCKeditor.Height = '<% $opt{'height'} || 420 %>';
26   oFCKeditor.Config['StartupFocus'] = true;
27
28   oFCKeditor.Create();
29
30 </SCRIPT>
31
32 <%init>
33
34 my %opt = @_;
35
36 </%init>