fix "multiple states" links, RT#13922
[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 % if ( $opt{'width'} ) {
26     oFCKeditor.Width = '<% $opt{'width'} %>';
27 % }
28   oFCKeditor.Height = '<% $opt{'height'} || 420 %>';
29   oFCKeditor.Config['StartupFocus'] = true;
30   oFCKeditor.Config['EnterMode'] = 'br';
31
32   oFCKeditor.Create();
33
34 </SCRIPT>
35
36 <%init>
37
38 my %opt = @_;
39
40 </%init>