This commit was manufactured by cvs2svn to create tag 'freeside_1_9_2'.
[freeside.git] / httemplate / elements / fckeditor / editor / dialog / fck_textarea.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >\r
2 <!--\r
3  * FCKeditor - The text editor for Internet - http://www.fckeditor.net\r
4  * Copyright (C) 2003-2007 Frederico Caldeira Knabben\r
5  *\r
6  * == BEGIN LICENSE ==\r
7  *\r
8  * Licensed under the terms of any of the following licenses at your\r
9  * choice:\r
10  *\r
11  *  - GNU General Public License Version 2 or later (the "GPL")\r
12  *    http://www.gnu.org/licenses/gpl.html\r
13  *\r
14  *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")\r
15  *    http://www.gnu.org/licenses/lgpl.html\r
16  *\r
17  *  - Mozilla Public License Version 1.1 or later (the "MPL")\r
18  *    http://www.mozilla.org/MPL/MPL-1.1.html\r
19  *\r
20  * == END LICENSE ==\r
21  *\r
22  * Text Area dialog window.\r
23 -->\r
24 <html>\r
25         <head>\r
26                 <title>Text Area Properties</title>\r
27                 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r
28                 <meta content="noindex, nofollow" name="robots">\r
29                 <script src="common/fck_dialog_common.js" type="text/javascript"></script>\r
30                 <script type="text/javascript">\r
31 \r
32 var oEditor = window.parent.InnerDialogLoaded() ;\r
33 \r
34 // Gets the document DOM\r
35 var oDOM = oEditor.FCK.EditorDocument ;\r
36 \r
37 var oActiveEl = oEditor.FCKSelection.GetSelectedElement() ;\r
38 \r
39 window.onload = function()\r
40 {\r
41         // First of all, translate the dialog box texts\r
42         oEditor.FCKLanguageManager.TranslatePage(document) ;\r
43 \r
44         if ( oActiveEl && oActiveEl.tagName == 'TEXTAREA' )\r
45         {\r
46                 GetE('txtName').value           = oActiveEl.name ;\r
47                 GetE('txtCols').value           = GetAttribute( oActiveEl, 'cols' ) ;\r
48                 GetE('txtRows').value           = GetAttribute( oActiveEl, 'rows' ) ;\r
49         }\r
50         else\r
51                 oActiveEl = null ;\r
52 \r
53         window.parent.SetOkButton( true ) ;\r
54 }\r
55 \r
56 function Ok()\r
57 {\r
58         if ( !oActiveEl )\r
59         {\r
60                 oActiveEl = oEditor.FCK.EditorDocument.createElement( 'TEXTAREA' ) ;\r
61                 oActiveEl = oEditor.FCK.InsertElementAndGetIt( oActiveEl ) ;\r
62         }\r
63 \r
64         oActiveEl.name = GetE('txtName').value ;\r
65         SetAttribute( oActiveEl, 'cols', GetE('txtCols').value ) ;\r
66         SetAttribute( oActiveEl, 'rows', GetE('txtRows').value ) ;\r
67 \r
68         return true ;\r
69 }\r
70 \r
71                 </script>\r
72         </head>\r
73         <body style='OVERFLOW: hidden' scroll='no'>\r
74                 <table height="100%" width="100%">\r
75                         <tr>\r
76                                 <td align="center">\r
77                                         <table border="0" cellpadding="0" cellspacing="0" width="80%">\r
78                                                 <tr>\r
79                                                         <td>\r
80                                                                 <span fckLang="DlgTextareaName">Name</span><br>\r
81                                                                 <input type="text" id="txtName" style="WIDTH: 100%">\r
82                                                                 <span fckLang="DlgTextareaCols">Collumns</span><br>\r
83                                                                 <input id="txtCols" type="text" size="5">\r
84                                                                 <br>\r
85                                                                 <span fckLang="DlgTextareaRows">Rows</span><br>\r
86                                                                 <input id="txtRows" type="text" size="5">\r
87                                                         </td>\r
88                                                 </tr>\r
89                                         </table>\r
90                                 </td>\r
91                         </tr>\r
92                 </table>\r
93         </body>\r
94 </html>\r