Subversion Repositories Applications.papyrus

Rev

Rev 1688 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1688 Rev 1921
Line 1... Line 1...
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
<!--
2
<!--
3
 * FCKeditor - The text editor for internet
3
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
4
 * Copyright (C) 2003-2006 Frederico Caldeira Knabben
4
 * Copyright (C) 2003-2008 Frederico Caldeira Knabben
-
 
5
 *
-
 
6
 * == BEGIN LICENSE ==
5
 * 
7
 *
6
 * Licensed under the terms of the GNU Lesser General Public License:
8
 * Licensed under the terms of any of the following licenses at your
7
 * 		http://www.opensource.org/licenses/lgpl-license.php
9
 * choice:
8
 * 
10
 *
9
 * For further information visit:
11
 *  - GNU General Public License Version 2 or later (the "GPL")
10
 * 		http://www.fckeditor.net/
12
 *    http://www.gnu.org/licenses/gpl.html
11
 * 
13
 *
12
 * "Support Open Source software. What about a donation today?"
14
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
-
 
15
 *    http://www.gnu.org/licenses/lgpl.html
13
 * 
16
 *
14
 * File Name: fck_placeholder.html
17
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
15
 * 	Placeholder Plugin.
18
 *    http://www.mozilla.org/MPL/MPL-1.1.html
16
 * 
19
 *
17
 * File Authors:
20
 * == END LICENSE ==
-
 
21
 *
18
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
22
 * Placeholder Plugin.
19
-->
23
-->
20
<html>
24
<html>
21
	<head>
25
	<head>
22
		<title>Placeholder Properties</title>
26
		<title>Placeholder Properties</title>
23
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
27
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
24
		<meta content="noindex, nofollow" name="robots">
28
		<meta content="noindex, nofollow" name="robots">
-
 
29
		<script src="../../dialog/common/fck_dialog_common.js" type="text/javascript"></script>
25
		<script language="javascript">
30
		<script language="javascript">
Line -... Line 31...
-
 
31
 
26
 
32
var dialog = window.parent ;
27
var oEditor = window.parent.InnerDialogLoaded() ;
33
var oEditor = dialog.InnerDialogLoaded() ;
28
var FCKLang = oEditor.FCKLang ;
34
var FCKLang = oEditor.FCKLang ;
Line 29... Line 35...
29
var FCKPlaceholders = oEditor.FCKPlaceholders ;
35
var FCKPlaceholders = oEditor.FCKPlaceholders ;
30
 
36
 
31
window.onload = function ()
37
window.onload = function ()
32
{
38
{
33
	// First of all, translate the dialog box texts
39
	// First of all, translate the dialog box texts
34
	oEditor.FCKLanguageManager.TranslatePage( document ) ;
40
	oEditor.FCKLanguageManager.TranslatePage( document ) ;
35
	
41
 
36
	LoadSelected() ;
42
	LoadSelected() ;
37
	
43
 
-
 
44
	// Show the "Ok" button.
-
 
45
	dialog.SetOkButton( true ) ;
-
 
46
 
38
	// Show the "Ok" button.
47
	// Select text field on load.
Line 39... Line 48...
39
	window.parent.SetOkButton( true ) ;	
48
	SelectField( 'txtName' ) ;
Line 40... Line 49...
40
}
49
}
41
 
50
 
42
var eSelected = oEditor.FCKSelection.GetSelectedElement() ;
51
var eSelected = dialog.Selection.GetSelectedElement() ;
43
 
52
 
Line 53... Line 62...
53
}
62
}
Line 54... Line 63...
54
 
63
 
55
function Ok()
64
function Ok()
56
{
65
{
57
	var sValue = document.getElementById('txtName').value ;
66
	var sValue = document.getElementById('txtName').value ;
58
	
67
 
59
	if ( eSelected && eSelected._fckplaceholder == sValue )
68
	if ( eSelected && eSelected._fckplaceholder == sValue )
Line 60... Line 69...
60
		return true ;
69
		return true ;
61
 
70
 
62
	if ( sValue.length == 0 )
71
	if ( sValue.length == 0 )
63
	{
72
	{
64
		alert( FCKLang.PlaceholderErrNoName ) ;
73
		alert( FCKLang.PlaceholderErrNoName ) ;
65
		return false ;
74
		return false ;
66
	}
75
	}
67
	
76
 
68
	if ( FCKPlaceholders.Exist( sValue ) )
77
	if ( FCKPlaceholders.Exist( sValue ) )
69
	{
78
	{
70
		alert( FCKLang.PlaceholderErrNameInUse ) ;
79
		alert( FCKLang.PlaceholderErrNameInUse ) ;
Line 91... Line 100...
91
					</table>
100
					</table>
92
				</td>
101
				</td>
93
			</tr>
102
			</tr>
94
		</table>
103
		</table>
95
	</body>
104
	</body>
96
</html>
-
 
97
105
</html>
-
 
106