1.1.11
by Dan Garner
Moved the 3rdparty libraries into their own folder |
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-2007 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 |
* Hidden Field dialog window.
|
|
23 |
-->
|
|
24 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
25 |
<head> |
|
26 |
<title>Hidden Field 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 oEditor = window.parent.InnerDialogLoaded() ; |
|
33 |
var FCK = oEditor.FCK ; |
|
34 |
||
35 |
// Gets the document DOM
|
|
36 |
var oDOM = FCK.EditorDocument ; |
|
37 |
||
38 |
// Get the selected flash embed (if available).
|
|
39 |
var oFakeImage = FCK.Selection.GetSelectedElement() ; |
|
40 |
var oActiveEl ; |
|
41 |
||
42 |
if ( oFakeImage ) |
|
43 |
{
|
|
44 |
if ( oFakeImage.tagName == 'IMG' && oFakeImage.getAttribute('_fckinputhidden') ) |
|
45 |
oActiveEl = FCK.GetRealElement( oFakeImage ) ; |
|
46 |
else
|
|
47 |
oFakeImage = null ; |
|
48 |
}
|
|
49 |
||
50 |
window.onload = function() |
|
51 |
{
|
|
52 |
// First of all, translate the dialog box texts
|
|
53 |
oEditor.FCKLanguageManager.TranslatePage(document) ; |
|
54 |
||
55 |
if ( oActiveEl ) |
|
56 |
{
|
|
57 |
GetE('txtName').value = oActiveEl.name ; |
|
58 |
GetE('txtValue').value = oActiveEl.value ; |
|
59 |
}
|
|
60 |
||
61 |
window.parent.SetOkButton( true ) ; |
|
62 |
window.parent.SetAutoSize( true ) ; |
|
63 |
}
|
|
64 |
||
65 |
||
66 |
function Ok() |
|
67 |
{
|
|
68 |
oEditor.FCKUndo.SaveUndoStep() ; |
|
69 |
||
70 |
if ( !oActiveEl ) |
|
71 |
{
|
|
72 |
oActiveEl = FCK.EditorDocument.createElement( 'INPUT' ) ; |
|
73 |
oActiveEl.type = 'hidden' ; |
|
74 |
||
75 |
oFakeImage = null ; |
|
76 |
}
|
|
77 |
||
78 |
oActiveEl.name = GetE('txtName').value ; |
|
79 |
SetAttribute( oActiveEl, 'value', GetE('txtValue').value ) ; |
|
80 |
||
81 |
if ( !oFakeImage ) |
|
82 |
{
|
|
83 |
oFakeImage = oEditor.FCKDocumentProcessor_CreateFakeImage( 'FCK__InputHidden', oActiveEl ) ; |
|
84 |
oFakeImage.setAttribute( '_fckinputhidden', 'true', 0 ) ; |
|
85 |
oFakeImage = FCK.InsertElement( oFakeImage ) ; |
|
86 |
}
|
|
87 |
else
|
|
88 |
oEditor.FCKUndo.SaveUndoStep() ; |
|
89 |
||
90 |
oEditor.FCKFlashProcessor.RefreshView( oFakeImage, oActiveEl ) ; |
|
91 |
||
92 |
return true ; |
|
93 |
}
|
|
94 |
||
95 |
</script> |
|
96 |
</head> |
|
97 |
<body style="overflow: hidden" scroll="no"> |
|
98 |
<table height="100%" width="100%"> |
|
99 |
<tr> |
|
100 |
<td align="center"> |
|
101 |
<table border="0" class="inhoud" cellpadding="0" cellspacing="0" width="80%"> |
|
102 |
<tr> |
|
103 |
<td> |
|
104 |
<span fcklang="DlgHiddenName">Name</span><br /> |
|
105 |
<input type="text" size="20" id="txtName" style="width: 100%" /> |
|
106 |
</td> |
|
107 |
</tr> |
|
108 |
<tr> |
|
109 |
<td> |
|
110 |
<span fcklang="DlgHiddenValue">Value</span><br /> |
|
111 |
<input type="text" size="30" id="txtValue" style="width: 100%" /> |
|
112 |
</td> |
|
113 |
</tr> |
|
114 |
</table> |
|
115 |
</td> |
|
116 |
</tr> |
|
117 |
</table> |
|
118 |
</body> |
|
119 |
</html> |