Subversion Repositories Applications.papyrus

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

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