This commit was manufactured by cvs2svn to create tag 'freeside_2_1_0'.
[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   oFCKeditor.Config['EnterMode'] = 'br';
28
29   oFCKeditor.Create();
30
31 </SCRIPT>
32
33 <%init>
34
35 my %opt = @_;
36
37 </%init>