Revision 1159
Added by Luisehahne about 15 years ago
branches/2.8.x/CHANGELOG | ||
---|---|---|
12 | 12 |
|
13 | 13 |
------------------------------------- 2.8.1 ------------------------------------- |
14 | 14 |
09-Oct-2009 Dietmar Woellbrink |
15 |
! Update FCKeditor to Version 2.6.5 Modulversion 2.9.1 |
|
16 |
09-Oct-2009 Dietmar Woellbrink |
|
15 | 17 |
+ upgrade.php to reset newsfiles to created dates |
16 | 18 |
09-Oct-2009 Dietmar Woellbrink |
17 | 19 |
# Ticket #770, #785, #792, #807, #809, |
branches/2.8.x/wb/modules/fckeditor_2.6/fckeditor/editor/dialog/fck_flash/fck_flash_preview.html | ||
---|---|---|
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-2009 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 |
* Preview page for the Flash dialog window. |
|
23 |
--> |
|
24 |
<html> |
|
25 |
<head> |
|
26 |
<title></title> |
|
27 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
|
28 |
<meta name="robots" content="noindex, nofollow"> |
|
29 |
<script src="../common/fck_dialog_common.js" type="text/javascript"></script> |
|
30 |
<script language="javascript"> |
|
31 |
|
|
32 |
var FCKTools = window.parent.FCKTools ; |
|
33 |
var FCKConfig = window.parent.FCKConfig ; |
|
34 |
|
|
35 |
// Sets the Skin CSS |
|
36 |
document.write( FCKTools.GetStyleHtml( FCKConfig.SkinDialogCSS ) ) ; |
|
37 |
document.write( FCKTools.GetStyleHtml( GetCommonDialogCss( '../' ) ) ) ; |
|
38 |
|
|
39 |
if ( window.parent.FCKConfig.BaseHref.length > 0 ) |
|
40 |
document.write( '<base href="' + window.parent.FCKConfig.BaseHref + '">' ) ; |
|
41 |
|
|
42 |
window.onload = function() |
|
43 |
{ |
|
44 |
window.parent.SetPreviewElement( document.body ) ; |
|
45 |
} |
|
46 |
|
|
47 |
</script> |
|
48 |
</head> |
|
49 |
<body style="COLOR: #000000; BACKGROUND-COLOR: #ffffff"></body> |
|
50 |
</html> |
branches/2.8.x/wb/modules/fckeditor_2.6/fckeditor/editor/dialog/fck_flash/fck_flash.js | ||
---|---|---|
1 |
/* |
|
2 |
* FCKeditor - The text editor for Internet - http://www.fckeditor.net |
|
3 |
* Copyright (C) 2003-2009 Frederico Caldeira Knabben |
|
4 |
* |
|
5 |
* == BEGIN LICENSE == |
|
6 |
* |
|
7 |
* Licensed under the terms of any of the following licenses at your |
|
8 |
* choice: |
|
9 |
* |
|
10 |
* - GNU General Public License Version 2 or later (the "GPL") |
|
11 |
* http://www.gnu.org/licenses/gpl.html |
|
12 |
* |
|
13 |
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL") |
|
14 |
* http://www.gnu.org/licenses/lgpl.html |
|
15 |
* |
|
16 |
* - Mozilla Public License Version 1.1 or later (the "MPL") |
|
17 |
* http://www.mozilla.org/MPL/MPL-1.1.html |
|
18 |
* |
|
19 |
* == END LICENSE == |
|
20 |
* |
|
21 |
* Scripts related to the Flash dialog window (see fck_flash.html). |
|
22 |
*/ |
|
23 |
|
|
24 |
var dialog = window.parent ; |
|
25 |
var oEditor = dialog.InnerDialogLoaded() ; |
|
26 |
var FCK = oEditor.FCK ; |
|
27 |
var FCKLang = oEditor.FCKLang ; |
|
28 |
var FCKConfig = oEditor.FCKConfig ; |
|
29 |
var FCKTools = oEditor.FCKTools ; |
|
30 |
|
|
31 |
//#### Dialog Tabs |
|
32 |
|
|
33 |
// Set the dialog tabs. |
|
34 |
dialog.AddTab( 'Info', oEditor.FCKLang.DlgInfoTab ) ; |
|
35 |
|
|
36 |
if ( FCKConfig.FlashUpload ) |
|
37 |
dialog.AddTab( 'Upload', FCKLang.DlgLnkUpload ) ; |
|
38 |
|
|
39 |
if ( !FCKConfig.FlashDlgHideAdvanced ) |
|
40 |
dialog.AddTab( 'Advanced', oEditor.FCKLang.DlgAdvancedTag ) ; |
|
41 |
|
|
42 |
// Function called when a dialog tag is selected. |
|
43 |
function OnDialogTabChange( tabCode ) |
|
44 |
{ |
|
45 |
ShowE('divInfo' , ( tabCode == 'Info' ) ) ; |
|
46 |
ShowE('divUpload' , ( tabCode == 'Upload' ) ) ; |
|
47 |
ShowE('divAdvanced' , ( tabCode == 'Advanced' ) ) ; |
|
48 |
} |
|
49 |
|
|
50 |
// Get the selected flash embed (if available). |
|
51 |
var oFakeImage = dialog.Selection.GetSelectedElement() ; |
|
52 |
var oEmbed ; |
|
53 |
|
|
54 |
if ( oFakeImage ) |
|
55 |
{ |
|
56 |
if ( oFakeImage.tagName == 'IMG' && oFakeImage.getAttribute('_fckflash') ) |
|
57 |
oEmbed = FCK.GetRealElement( oFakeImage ) ; |
|
58 |
else |
|
59 |
oFakeImage = null ; |
|
60 |
} |
|
61 |
|
|
62 |
window.onload = function() |
|
63 |
{ |
|
64 |
// Translate the dialog box texts. |
|
65 |
oEditor.FCKLanguageManager.TranslatePage(document) ; |
|
66 |
|
|
67 |
// Load the selected element information (if any). |
|
68 |
LoadSelection() ; |
|
69 |
|
|
70 |
// Show/Hide the "Browse Server" button. |
|
71 |
GetE('tdBrowse').style.display = FCKConfig.FlashBrowser ? '' : 'none' ; |
|
72 |
|
|
73 |
// Set the actual uploader URL. |
|
74 |
if ( FCKConfig.FlashUpload ) |
|
75 |
GetE('frmUpload').action = FCKConfig.FlashUploadURL ; |
|
76 |
|
|
77 |
dialog.SetAutoSize( true ) ; |
|
78 |
|
|
79 |
// Activate the "OK" button. |
|
80 |
dialog.SetOkButton( true ) ; |
|
81 |
|
|
82 |
SelectField( 'txtUrl' ) ; |
|
83 |
} |
|
84 |
|
|
85 |
function LoadSelection() |
|
86 |
{ |
|
87 |
if ( ! oEmbed ) return ; |
|
88 |
|
|
89 |
GetE('txtUrl').value = GetAttribute( oEmbed, 'src', '' ) ; |
|
90 |
GetE('txtWidth').value = GetAttribute( oEmbed, 'width', '' ) ; |
|
91 |
GetE('txtHeight').value = GetAttribute( oEmbed, 'height', '' ) ; |
|
92 |
|
|
93 |
// Get Advances Attributes |
|
94 |
GetE('txtAttId').value = oEmbed.id ; |
|
95 |
GetE('chkAutoPlay').checked = GetAttribute( oEmbed, 'play', 'true' ) == 'true' ; |
|
96 |
GetE('chkLoop').checked = GetAttribute( oEmbed, 'loop', 'true' ) == 'true' ; |
|
97 |
GetE('chkMenu').checked = GetAttribute( oEmbed, 'menu', 'true' ) == 'true' ; |
|
98 |
GetE('cmbScale').value = GetAttribute( oEmbed, 'scale', '' ).toLowerCase() ; |
|
99 |
|
|
100 |
GetE('txtAttTitle').value = oEmbed.title ; |
|
101 |
|
|
102 |
if ( oEditor.FCKBrowserInfo.IsIE ) |
|
103 |
{ |
|
104 |
GetE('txtAttClasses').value = oEmbed.getAttribute('className') || '' ; |
|
105 |
GetE('txtAttStyle').value = oEmbed.style.cssText ; |
|
106 |
} |
|
107 |
else |
|
108 |
{ |
|
109 |
GetE('txtAttClasses').value = oEmbed.getAttribute('class',2) || '' ; |
|
110 |
GetE('txtAttStyle').value = oEmbed.getAttribute('style',2) || '' ; |
|
111 |
} |
|
112 |
|
|
113 |
UpdatePreview() ; |
|
114 |
} |
|
115 |
|
|
116 |
//#### The OK button was hit. |
|
117 |
function Ok() |
|
118 |
{ |
|
119 |
if ( GetE('txtUrl').value.length == 0 ) |
|
120 |
{ |
|
121 |
dialog.SetSelectedTab( 'Info' ) ; |
|
122 |
GetE('txtUrl').focus() ; |
|
123 |
|
|
124 |
alert( oEditor.FCKLang.DlgAlertUrl ) ; |
|
125 |
|
|
126 |
return false ; |
|
127 |
} |
|
128 |
|
|
129 |
oEditor.FCKUndo.SaveUndoStep() ; |
|
130 |
if ( !oEmbed ) |
|
131 |
{ |
|
132 |
oEmbed = FCK.EditorDocument.createElement( 'EMBED' ) ; |
|
133 |
oFakeImage = null ; |
|
134 |
} |
|
135 |
UpdateEmbed( oEmbed ) ; |
|
136 |
|
|
137 |
if ( !oFakeImage ) |
|
138 |
{ |
|
139 |
oFakeImage = oEditor.FCKDocumentProcessor_CreateFakeImage( 'FCK__Flash', oEmbed ) ; |
|
140 |
oFakeImage.setAttribute( '_fckflash', 'true', 0 ) ; |
|
141 |
oFakeImage = FCK.InsertElement( oFakeImage ) ; |
|
142 |
} |
|
143 |
|
|
144 |
oEditor.FCKEmbedAndObjectProcessor.RefreshView( oFakeImage, oEmbed ) ; |
|
145 |
|
|
146 |
return true ; |
|
147 |
} |
|
148 |
|
|
149 |
function UpdateEmbed( e ) |
|
150 |
{ |
|
151 |
SetAttribute( e, 'type' , 'application/x-shockwave-flash' ) ; |
|
152 |
SetAttribute( e, 'pluginspage' , 'http://www.macromedia.com/go/getflashplayer' ) ; |
|
153 |
|
|
154 |
SetAttribute( e, 'src', GetE('txtUrl').value ) ; |
|
155 |
SetAttribute( e, "width" , GetE('txtWidth').value ) ; |
|
156 |
SetAttribute( e, "height", GetE('txtHeight').value ) ; |
|
157 |
|
|
158 |
// Advances Attributes |
|
159 |
|
|
160 |
SetAttribute( e, 'id' , GetE('txtAttId').value ) ; |
|
161 |
SetAttribute( e, 'scale', GetE('cmbScale').value ) ; |
|
162 |
|
|
163 |
SetAttribute( e, 'play', GetE('chkAutoPlay').checked ? 'true' : 'false' ) ; |
|
164 |
SetAttribute( e, 'loop', GetE('chkLoop').checked ? 'true' : 'false' ) ; |
|
165 |
SetAttribute( e, 'menu', GetE('chkMenu').checked ? 'true' : 'false' ) ; |
|
166 |
|
|
167 |
SetAttribute( e, 'title' , GetE('txtAttTitle').value ) ; |
|
168 |
|
|
169 |
if ( oEditor.FCKBrowserInfo.IsIE ) |
|
170 |
{ |
|
171 |
SetAttribute( e, 'className', GetE('txtAttClasses').value ) ; |
|
172 |
e.style.cssText = GetE('txtAttStyle').value ; |
|
173 |
} |
|
174 |
else |
|
175 |
{ |
|
176 |
SetAttribute( e, 'class', GetE('txtAttClasses').value ) ; |
|
177 |
SetAttribute( e, 'style', GetE('txtAttStyle').value ) ; |
|
178 |
} |
|
179 |
} |
|
180 |
|
|
181 |
var ePreview ; |
|
182 |
|
|
183 |
function SetPreviewElement( previewEl ) |
|
184 |
{ |
|
185 |
ePreview = previewEl ; |
|
186 |
|
|
187 |
if ( GetE('txtUrl').value.length > 0 ) |
|
188 |
UpdatePreview() ; |
|
189 |
} |
|
190 |
|
|
191 |
function UpdatePreview() |
|
192 |
{ |
|
193 |
if ( !ePreview ) |
|
194 |
return ; |
|
195 |
|
|
196 |
while ( ePreview.firstChild ) |
|
197 |
ePreview.removeChild( ePreview.firstChild ) ; |
|
198 |
|
|
199 |
if ( GetE('txtUrl').value.length == 0 ) |
|
200 |
ePreview.innerHTML = ' ' ; |
|
201 |
else |
|
202 |
{ |
|
203 |
var oDoc = ePreview.ownerDocument || ePreview.document ; |
|
204 |
var e = oDoc.createElement( 'EMBED' ) ; |
|
205 |
|
|
206 |
SetAttribute( e, 'src', GetE('txtUrl').value ) ; |
|
207 |
SetAttribute( e, 'type', 'application/x-shockwave-flash' ) ; |
|
208 |
SetAttribute( e, 'width', '100%' ) ; |
|
209 |
SetAttribute( e, 'height', '100%' ) ; |
|
210 |
|
|
211 |
ePreview.appendChild( e ) ; |
|
212 |
} |
|
213 |
} |
|
214 |
|
|
215 |
// <embed id="ePreview" src="fck_flash/claims.swf" width="100%" height="100%" style="visibility:hidden" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"> |
|
216 |
|
|
217 |
function BrowseServer() |
|
218 |
{ |
|
219 |
OpenFileBrowser( FCKConfig.FlashBrowserURL, FCKConfig.FlashBrowserWindowWidth, FCKConfig.FlashBrowserWindowHeight ) ; |
|
220 |
} |
|
221 |
|
|
222 |
function SetUrl( url, width, height ) |
|
223 |
{ |
|
224 |
GetE('txtUrl').value = url ; |
|
225 |
|
|
226 |
if ( width ) |
|
227 |
GetE('txtWidth').value = width ; |
|
228 |
|
|
229 |
if ( height ) |
|
230 |
GetE('txtHeight').value = height ; |
|
231 |
|
|
232 |
UpdatePreview() ; |
|
233 |
|
|
234 |
dialog.SetSelectedTab( 'Info' ) ; |
|
235 |
} |
|
236 |
|
|
237 |
function OnUploadCompleted( errorNumber, fileUrl, fileName, customMsg ) |
|
238 |
{ |
|
239 |
// Remove animation |
|
240 |
window.parent.Throbber.Hide() ; |
|
241 |
GetE( 'divUpload' ).style.display = '' ; |
|
242 |
|
|
243 |
switch ( errorNumber ) |
|
244 |
{ |
|
245 |
case 0 : // No errors |
|
246 |
alert( 'Your file has been successfully uploaded' ) ; |
|
247 |
break ; |
|
248 |
case 1 : // Custom error |
|
249 |
alert( customMsg ) ; |
|
250 |
return ; |
|
251 |
case 101 : // Custom warning |
|
252 |
alert( customMsg ) ; |
|
253 |
break ; |
|
254 |
case 201 : |
|
255 |
alert( 'A file with the same name is already available. The uploaded file has been renamed to "' + fileName + '"' ) ; |
|
256 |
break ; |
|
257 |
case 202 : |
|
258 |
alert( 'Invalid file type' ) ; |
|
259 |
return ; |
|
260 |
case 203 : |
|
261 |
alert( "Security error. You probably don't have enough permissions to upload. Please check your server." ) ; |
|
262 |
return ; |
|
263 |
case 500 : |
|
264 |
alert( 'The connector is disabled' ) ; |
|
265 |
break ; |
|
266 |
default : |
|
267 |
alert( 'Error on file upload. Error number: ' + errorNumber ) ; |
|
268 |
return ; |
|
269 |
} |
|
270 |
|
|
271 |
SetUrl( fileUrl ) ; |
|
272 |
GetE('frmUpload').reset() ; |
|
273 |
} |
|
274 |
|
|
275 |
var oUploadAllowedExtRegex = new RegExp( FCKConfig.FlashUploadAllowedExtensions, 'i' ) ; |
|
276 |
var oUploadDeniedExtRegex = new RegExp( FCKConfig.FlashUploadDeniedExtensions, 'i' ) ; |
|
277 |
|
|
278 |
function CheckUpload() |
|
279 |
{ |
|
280 |
var sFile = GetE('txtUploadFile').value ; |
|
281 |
|
|
282 |
if ( sFile.length == 0 ) |
|
283 |
{ |
|
284 |
alert( 'Please select a file to upload' ) ; |
|
285 |
return false ; |
|
286 |
} |
|
287 |
|
|
288 |
if ( ( FCKConfig.FlashUploadAllowedExtensions.length > 0 && !oUploadAllowedExtRegex.test( sFile ) ) || |
|
289 |
( FCKConfig.FlashUploadDeniedExtensions.length > 0 && oUploadDeniedExtRegex.test( sFile ) ) ) |
|
290 |
{ |
|
291 |
OnUploadCompleted( 202 ) ; |
|
292 |
return false ; |
|
293 |
} |
|
294 |
|
|
295 |
// Show animation |
|
296 |
window.parent.Throbber.Show( 100 ) ; |
|
297 |
GetE( 'divUpload' ).style.display = 'none' ; |
|
298 |
|
|
299 |
return true ; |
|
300 |
} |
branches/2.8.x/wb/modules/fckeditor_2.6/fckeditor/editor/dialog/fck_link.html | ||
---|---|---|
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-2009 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 |
* Link dialog window. |
|
23 |
--> |
|
24 |
<html> |
|
25 |
<head> |
|
26 |
<title>Link Properties</title> |
|
27 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|
28 |
<meta name="robots" content="noindex, nofollow" /> |
|
29 |
<script src="common/fck_dialog_common.js" type="text/javascript"></script> |
|
30 |
<script src="fck_link/fck_link.js" type="text/javascript"></script> |
|
31 |
</head> |
|
32 |
<body scroll="no" style="OVERFLOW: hidden"> |
|
33 |
<div id="divInfo" style="DISPLAY: none"> |
|
34 |
<span fckLang="DlgLnkType">Link Type</span><br /> |
|
35 |
<select id="cmbLinkType" onchange="SetLinkType(this.value);"> |
|
36 |
<option value="url" fckLang="DlgLnkTypeURL" selected="selected">URL</option> |
|
37 |
<option value="anchor" fckLang="DlgLnkTypeAnchor">Anchor in this page</option> |
|
38 |
<option value="email" fckLang="DlgLnkTypeEMail">E-Mail</option> |
|
39 |
</select> |
|
40 |
<br /> |
|
41 |
<br /> |
|
42 |
<div id="divLinkTypeUrl"> |
|
43 |
<table cellspacing="0" cellpadding="0" width="100%" border="0" dir="ltr"> |
|
44 |
<tr> |
|
45 |
<td nowrap="nowrap"> |
|
46 |
<span fckLang="DlgLnkProto">Protocol</span><br /> |
|
47 |
<select id="cmbLinkProtocol"> |
|
48 |
<option value="http://" selected="selected">http://</option> |
|
49 |
<option value="https://">https://</option> |
|
50 |
<option value="ftp://">ftp://</option> |
|
51 |
<option value="news://">news://</option> |
|
52 |
<option value="" fckLang="DlgLnkProtoOther"><other></option> |
|
53 |
</select> |
|
54 |
</td> |
|
55 |
<td nowrap="nowrap"> </td> |
|
56 |
<td nowrap="nowrap" width="100%"> |
|
57 |
<span fckLang="DlgLnkURL">URL</span><br /> |
|
58 |
<input id="txtUrl" style="WIDTH: 100%" type="text" onkeyup="OnUrlChange();" onchange="OnUrlChange();" /> |
|
59 |
</td> |
|
60 |
</tr> |
|
61 |
</table> |
|
62 |
<br /> |
|
63 |
<div id="divBrowseServer"> |
|
64 |
<input type="button" value="Browse Server" fckLang="DlgBtnBrowseServer" onclick="BrowseServer();" /> |
|
65 |
</div> |
|
66 |
</div> |
|
67 |
<div id="divLinkTypeAnchor" style="DISPLAY: none" align="center"> |
|
68 |
<div id="divSelAnchor" style="DISPLAY: none"> |
|
69 |
<table cellspacing="0" cellpadding="0" border="0" width="70%"> |
|
70 |
<tr> |
|
71 |
<td colspan="3"> |
|
72 |
<span fckLang="DlgLnkAnchorSel">Select an Anchor</span> |
|
73 |
</td> |
|
74 |
</tr> |
|
75 |
<tr> |
|
76 |
<td width="50%"> |
|
77 |
<span fckLang="DlgLnkAnchorByName">By Anchor Name</span><br /> |
|
78 |
<select id="cmbAnchorName" onchange="GetE('cmbAnchorId').value='';" style="WIDTH: 100%"> |
|
79 |
<option value="" selected="selected"></option> |
|
80 |
</select> |
|
81 |
</td> |
|
82 |
<td> </td> |
|
83 |
<td width="50%"> |
|
84 |
<span fckLang="DlgLnkAnchorById">By Element Id</span><br /> |
|
85 |
<select id="cmbAnchorId" onchange="GetE('cmbAnchorName').value='';" style="WIDTH: 100%"> |
|
86 |
<option value="" selected="selected"></option> |
|
87 |
</select> |
|
88 |
</td> |
|
89 |
</tr> |
|
90 |
</table> |
|
91 |
</div> |
|
92 |
<div id="divNoAnchor" style="DISPLAY: none"> |
|
93 |
<span fckLang="DlgLnkNoAnchors"><No anchors available in the document></span> |
|
94 |
</div> |
|
95 |
</div> |
|
96 |
<div id="divLinkTypeEMail" style="DISPLAY: none"> |
|
97 |
<span fckLang="DlgLnkEMail">E-Mail Address</span><br /> |
|
98 |
<input id="txtEMailAddress" style="WIDTH: 100%" type="text" /><br /> |
|
99 |
<span fckLang="DlgLnkEMailSubject">Message Subject</span><br /> |
|
100 |
<input id="txtEMailSubject" style="WIDTH: 100%" type="text" /><br /> |
|
101 |
<span fckLang="DlgLnkEMailBody">Message Body</span><br /> |
|
102 |
<textarea id="txtEMailBody" style="WIDTH: 100%" rows="3" cols="20"></textarea> |
|
103 |
</div> |
|
104 |
</div> |
|
105 |
<div id="divUpload" style="DISPLAY: none"> |
|
106 |
<form id="frmUpload" method="post" target="UploadWindow" enctype="multipart/form-data" action="" onsubmit="return CheckUpload();"> |
|
107 |
<span fckLang="DlgLnkUpload">Upload</span><br /> |
|
108 |
<input id="txtUploadFile" style="WIDTH: 100%" type="file" size="40" name="NewFile" /><br /> |
|
109 |
<br /> |
|
110 |
<input id="btnUpload" type="submit" value="Send it to the Server" fckLang="DlgLnkBtnUpload" /> |
|
111 |
<script type="text/javascript"> |
|
112 |
document.write( '<iframe name="UploadWindow" style="display: none" src="' + FCKTools.GetVoidUrl() + '"><\/iframe>' ) ; |
|
113 |
</script> |
|
114 |
</form> |
|
115 |
</div> |
|
116 |
<div id="divTarget" style="DISPLAY: none"> |
|
117 |
<table cellspacing="0" cellpadding="0" width="100%" border="0"> |
|
118 |
<tr> |
|
119 |
<td nowrap="nowrap"> |
|
120 |
<span fckLang="DlgLnkTarget">Target</span><br /> |
|
121 |
<select id="cmbTarget" onchange="SetTarget(this.value);"> |
|
122 |
<option value="" fckLang="DlgGenNotSet" selected="selected"><not set></option> |
|
123 |
<option value="frame" fckLang="DlgLnkTargetFrame"><frame></option> |
|
124 |
<option value="popup" fckLang="DlgLnkTargetPopup"><popup window></option> |
|
125 |
<option value="_blank" fckLang="DlgLnkTargetBlank">New Window (_blank)</option> |
|
126 |
<option value="_top" fckLang="DlgLnkTargetTop">Topmost Window (_top)</option> |
|
127 |
<option value="_self" fckLang="DlgLnkTargetSelf">Same Window (_self)</option> |
|
128 |
<option value="_parent" fckLang="DlgLnkTargetParent">Parent Window (_parent)</option> |
|
129 |
</select> |
|
130 |
</td> |
|
131 |
<td> </td> |
|
132 |
<td id="tdTargetFrame" nowrap="nowrap" width="100%"> |
|
133 |
<span fckLang="DlgLnkTargetFrameName">Target Frame Name</span><br /> |
|
134 |
<input id="txtTargetFrame" style="WIDTH: 100%" type="text" onkeyup="OnTargetNameChange();" |
|
135 |
onchange="OnTargetNameChange();" /> |
|
136 |
</td> |
|
137 |
<td id="tdPopupName" style="DISPLAY: none" nowrap="nowrap" width="100%"> |
|
138 |
<span fckLang="DlgLnkPopWinName">Popup Window Name</span><br /> |
|
139 |
<input id="txtPopupName" style="WIDTH: 100%" type="text" /> |
|
140 |
</td> |
|
141 |
</tr> |
|
142 |
</table> |
|
143 |
<br /> |
|
144 |
<table id="tablePopupFeatures" style="DISPLAY: none" cellspacing="0" cellpadding="0" align="center" |
|
145 |
border="0"> |
|
146 |
<tr> |
|
147 |
<td> |
|
148 |
<span fckLang="DlgLnkPopWinFeat">Popup Window Features</span><br /> |
|
149 |
<table cellspacing="0" cellpadding="0" border="0"> |
|
150 |
<tr> |
|
151 |
<td valign="top" nowrap="nowrap" width="50%"> |
|
152 |
<input id="chkPopupResizable" name="chkFeature" value="resizable" type="checkbox" /><label for="chkPopupResizable" fckLang="DlgLnkPopResize">Resizable</label><br /> |
|
153 |
<input id="chkPopupLocationBar" name="chkFeature" value="location" type="checkbox" /><label for="chkPopupLocationBar" fckLang="DlgLnkPopLocation">Location |
|
154 |
Bar</label><br /> |
|
155 |
<input id="chkPopupManuBar" name="chkFeature" value="menubar" type="checkbox" /><label for="chkPopupManuBar" fckLang="DlgLnkPopMenu">Menu |
|
156 |
Bar</label><br /> |
|
157 |
<input id="chkPopupScrollBars" name="chkFeature" value="scrollbars" type="checkbox" /><label for="chkPopupScrollBars" fckLang="DlgLnkPopScroll">Scroll |
|
158 |
Bars</label> |
|
159 |
</td> |
|
160 |
<td></td> |
|
161 |
<td valign="top" nowrap="nowrap" width="50%"> |
|
162 |
<input id="chkPopupStatusBar" name="chkFeature" value="status" type="checkbox" /><label for="chkPopupStatusBar" fckLang="DlgLnkPopStatus">Status |
|
163 |
Bar</label><br /> |
|
164 |
<input id="chkPopupToolbar" name="chkFeature" value="toolbar" type="checkbox" /><label for="chkPopupToolbar" fckLang="DlgLnkPopToolbar">Toolbar</label><br /> |
|
165 |
<input id="chkPopupFullScreen" name="chkFeature" value="fullscreen" type="checkbox" /><label for="chkPopupFullScreen" fckLang="DlgLnkPopFullScrn">Full |
|
166 |
Screen (IE)</label><br /> |
|
167 |
<input id="chkPopupDependent" name="chkFeature" value="dependent" type="checkbox" /><label for="chkPopupDependent" fckLang="DlgLnkPopDependent">Dependent |
|
168 |
(Netscape)</label> |
|
169 |
</td> |
|
170 |
</tr> |
|
171 |
<tr> |
|
172 |
<td valign="top" nowrap="nowrap" width="50%"> </td> |
|
173 |
<td></td> |
|
174 |
<td valign="top" nowrap="nowrap" width="50%"></td> |
|
175 |
</tr> |
|
176 |
<tr> |
|
177 |
<td valign="top"> |
|
178 |
<table cellspacing="0" cellpadding="0" border="0"> |
|
179 |
<tr> |
|
180 |
<td nowrap="nowrap"><span fckLang="DlgLnkPopWidth">Width</span></td> |
|
181 |
<td> <input id="txtPopupWidth" type="text" maxlength="4" size="4" /></td> |
|
182 |
</tr> |
|
183 |
<tr> |
|
184 |
<td nowrap="nowrap"><span fckLang="DlgLnkPopHeight">Height</span></td> |
|
185 |
<td> <input id="txtPopupHeight" type="text" maxlength="4" size="4" /></td> |
|
186 |
</tr> |
|
187 |
</table> |
|
188 |
</td> |
|
189 |
<td> </td> |
|
190 |
<td valign="top"> |
|
191 |
<table cellspacing="0" cellpadding="0" border="0"> |
|
192 |
<tr> |
|
193 |
<td nowrap="nowrap"><span fckLang="DlgLnkPopLeft">Left Position</span></td> |
|
194 |
<td> <input id="txtPopupLeft" type="text" maxlength="4" size="4" /></td> |
|
195 |
</tr> |
|
196 |
<tr> |
|
197 |
<td nowrap="nowrap"><span fckLang="DlgLnkPopTop">Top Position</span></td> |
|
198 |
<td> <input id="txtPopupTop" type="text" maxlength="4" size="4" /></td> |
|
199 |
</tr> |
|
200 |
</table> |
|
201 |
</td> |
|
202 |
</tr> |
|
203 |
</table> |
|
204 |
</td> |
|
205 |
</tr> |
|
206 |
</table> |
|
207 |
</div> |
|
208 |
<div id="divAttribs" style="DISPLAY: none"> |
|
209 |
<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0"> |
|
210 |
<tr> |
|
211 |
<td valign="top" width="50%"> |
|
212 |
<span fckLang="DlgGenId">Id</span><br /> |
|
213 |
<input id="txtAttId" style="WIDTH: 100%" type="text" /> |
|
214 |
</td> |
|
215 |
<td width="1"></td> |
|
216 |
<td valign="top"> |
|
217 |
<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0"> |
|
218 |
<tr> |
|
219 |
<td width="60%"> |
|
220 |
<span fckLang="DlgGenLangDir">Language Direction</span><br /> |
|
221 |
<select id="cmbAttLangDir" style="WIDTH: 100%"> |
|
222 |
<option value="" fckLang="DlgGenNotSet" selected><not set></option> |
|
223 |
<option value="ltr" fckLang="DlgGenLangDirLtr">Left to Right (LTR)</option> |
|
224 |
<option value="rtl" fckLang="DlgGenLangDirRtl">Right to Left (RTL)</option> |
|
225 |
</select> |
|
226 |
</td> |
|
227 |
<td width="1%"> </td> |
|
228 |
<td nowrap="nowrap"><span fckLang="DlgGenAccessKey">Access Key</span><br /> |
|
229 |
<input id="txtAttAccessKey" style="WIDTH: 100%" type="text" maxlength="1" size="1" /> |
|
230 |
</td> |
|
231 |
</tr> |
|
232 |
</table> |
|
233 |
</td> |
|
234 |
</tr> |
|
235 |
<tr> |
|
236 |
<td valign="top" width="50%"> |
|
237 |
<span fckLang="DlgGenName">Name</span><br /> |
|
238 |
<input id="txtAttName" style="WIDTH: 100%" type="text" /> |
|
239 |
</td> |
|
240 |
<td width="1"></td> |
|
241 |
<td valign="top"> |
|
242 |
<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0"> |
|
243 |
<tr> |
|
244 |
<td width="60%"> |
|
245 |
<span fckLang="DlgGenLangCode">Language Code</span><br /> |
|
246 |
<input id="txtAttLangCode" style="WIDTH: 100%" type="text" /> |
|
247 |
</td> |
|
248 |
<td width="1%"> </td> |
|
249 |
<td nowrap="nowrap"> |
|
250 |
<span fckLang="DlgGenTabIndex">Tab Index</span><br /> |
|
251 |
<input id="txtAttTabIndex" style="WIDTH: 100%" type="text" maxlength="5" size="5" /> |
|
252 |
</td> |
|
253 |
</tr> |
|
254 |
</table> |
|
255 |
</td> |
|
256 |
</tr> |
|
257 |
<tr> |
|
258 |
<td valign="top" width="50%"> </td> |
|
259 |
<td width="1"></td> |
|
260 |
<td valign="top"></td> |
|
261 |
</tr> |
|
262 |
<tr> |
|
263 |
<td nowrap="nowrap"> |
|
264 |
<span fckLang="DlgGenContRel">Advisory Relation</span><br /> |
|
265 |
<select id="cmbAttContentRel" style="width: 100%"> |
|
266 |
<option value="" fckLang="DlgGenNotSet" selected><not set></option> |
|
267 |
<option value="alternate" fckLang="Alternate">Alternate</option> |
|
268 |
<option value="copyright" fckLang="copyright">Copyright</option> |
|
269 |
<option value="designates" fckLang="designates">Designates</option> |
|
270 |
<option value="nofollow" fckLang="nofollow">Nofollow</option> |
|
271 |
<option value="lightbox" fckLang="Lightbox">Lightbox</option> |
|
272 |
<option value="stylesheet" fckLang="stylesheet">Stylesheet</option> |
|
273 |
<option value="thumbnail" fckLang="Thumbnail">Thumbnail</option> |
|
274 |
</select> |
|
275 |
</td> |
|
276 |
<td width="1"> </td> |
|
277 |
<td valign="top"> |
|
278 |
<span fckLang="DlgGenContType">Advisory Content Type</span><br /> |
|
279 |
<input id="txtAttContentType" style="WIDTH: 100%" type="text" /> |
|
280 |
</td> |
|
281 |
</tr> |
|
282 |
<tr> |
|
283 |
<td valign="top"> |
|
284 |
<span fckLang="DlgGenClass">Stylesheet Classes</span><br /> |
|
285 |
<input id="txtAttClasses" style="WIDTH: 100%" type="text" /> |
|
286 |
</td> |
|
287 |
<td></td> |
|
288 |
<td valign="top"> |
|
289 |
<span fckLang="DlgGenLinkCharset">Linked Resource Charset</span><br /> |
|
290 |
<input id="txtAttCharSet" style="WIDTH: 100%" type="text" /> |
|
291 |
</td> |
|
292 |
</tr> |
|
293 |
</table> |
|
294 |
<table cellspacing="0" cellpadding="0" width="100%" align="center" border="0"> |
|
295 |
<tr> |
|
296 |
<td> |
|
297 |
<span fckLang="DlgGenStyle">Style</span><br /> |
|
298 |
<input id="txtAttStyle" style="WIDTH: 100%" type="text" /> |
|
299 |
</td> |
|
300 |
</tr> |
|
301 |
<tr> |
|
302 |
<td valign="top" width="100%"> |
|
303 |
<span fckLang="DlgGenTitle">Advisory Title</span><br /> |
|
304 |
<input id="txtAttTitle" style="WIDTH: 100%" type="text" /> |
|
305 |
</td> |
|
306 |
</tr> |
|
307 |
</table> |
|
308 |
</div> |
|
309 |
</body> |
|
310 |
</html> |
branches/2.8.x/wb/modules/fckeditor_2.6/fckeditor/editor/dialog/fck_form.html | ||
---|---|---|
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-2009 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 |
* Form dialog window. |
|
23 |
--> |
|
24 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
25 |
<head> |
|
26 |
<title></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.GetSelection().MoveToAncestorNode( 'FORM' ) ; |
|
39 |
|
|
40 |
window.onload = function() |
|
41 |
{ |
|
42 |
// First of all, translate the dialog box texts |
|
43 |
oEditor.FCKLanguageManager.TranslatePage(document) ; |
|
44 |
|
|
45 |
if ( oActiveEl ) |
|
46 |
{ |
|
47 |
GetE('txtName').value = oActiveEl.name ; |
|
48 |
GetE('txtAction').value = oActiveEl.getAttribute( 'action', 2 ) ; |
|
49 |
GetE('txtMethod').value = oActiveEl.method ; |
|
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 |
if ( !oActiveEl ) |
|
62 |
{ |
|
63 |
oActiveEl = oEditor.FCK.InsertElement( 'form' ) ; |
|
64 |
|
|
65 |
if ( oEditor.FCKBrowserInfo.IsGeckoLike ) |
|
66 |
oEditor.FCKTools.AppendBogusBr( oActiveEl ) ; |
|
67 |
} |
|
68 |
|
|
69 |
oActiveEl.name = GetE('txtName').value ; |
|
70 |
SetAttribute( oActiveEl, 'action', GetE('txtAction').value ) ; |
|
71 |
oActiveEl.method = GetE('txtMethod').value ; |
|
72 |
|
|
73 |
return true ; |
|
74 |
} |
|
75 |
|
|
76 |
</script> |
|
77 |
</head> |
|
78 |
<body style="overflow: hidden"> |
|
79 |
<table width="100%" style="height: 100%"> |
|
80 |
<tr> |
|
81 |
<td align="center"> |
|
82 |
<table cellspacing="0" cellpadding="0" width="80%" border="0"> |
|
83 |
<tr> |
|
84 |
<td> |
|
85 |
<span fcklang="DlgFormName">Name</span><br /> |
|
86 |
<input style="width: 100%" type="text" id="txtName" /> |
|
87 |
</td> |
|
88 |
</tr> |
|
89 |
<tr> |
|
90 |
<td> |
|
91 |
<span fcklang="DlgFormAction">Action</span><br /> |
|
92 |
<input style="width: 100%" type="text" id="txtAction" /> |
|
93 |
</td> |
|
94 |
</tr> |
|
95 |
<tr> |
|
96 |
<td> |
|
97 |
<span fcklang="DlgFormMethod">Method</span><br /> |
|
98 |
<select id="txtMethod"> |
|
99 |
<option value="get" selected="selected">GET</option> |
|
100 |
<option value="post">POST</option> |
|
101 |
</select> |
|
102 |
</td> |
|
103 |
</tr> |
|
104 |
</table> |
|
105 |
</td> |
|
106 |
</tr> |
|
107 |
</table> |
|
108 |
</body> |
|
109 |
</html> |
branches/2.8.x/wb/modules/fckeditor_2.6/fckeditor/editor/dialog/fck_about.html | ||
---|---|---|
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-2009 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 |
* "About" dialog window. |
|
23 |
--> |
|
24 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
25 |
<head> |
|
26 |
<title></title> |
|
27 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|
28 |
<meta name="robots" content="noindex, nofollow" /> |
|
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 FCKLang = oEditor.FCKLang ; |
|
34 |
|
|
35 |
window.parent.AddTab( 'About', FCKLang.DlgAboutAboutTab ) ; |
|
36 |
window.parent.AddTab( 'License', FCKLang.DlgAboutLicenseTab ) ; |
|
37 |
window.parent.AddTab( 'BrowserInfo', FCKLang.DlgAboutBrowserInfoTab ) ; |
|
38 |
|
|
39 |
// Function called when a dialog tag is selected. |
|
40 |
function OnDialogTabChange( tabCode ) |
|
41 |
{ |
|
42 |
ShowE('divAbout', ( tabCode == 'About' ) ) ; |
|
43 |
ShowE('divLicense', ( tabCode == 'License' ) ) ; |
|
44 |
ShowE('divInfo' , ( tabCode == 'BrowserInfo' ) ) ; |
|
45 |
} |
|
46 |
|
|
47 |
function SendEMail() |
|
48 |
{ |
|
49 |
var eMail = 'mailto:' ; |
|
50 |
eMail += 'fredck' ; |
|
51 |
eMail += '@' ; |
|
52 |
eMail += 'fckeditor' ; |
|
53 |
eMail += '.' ; |
|
54 |
eMail += 'net' ; |
|
55 |
|
|
56 |
window.location = eMail ; |
|
57 |
} |
|
58 |
|
|
59 |
window.onload = function() |
|
60 |
{ |
|
61 |
// Translate the dialog box texts. |
|
62 |
oEditor.FCKLanguageManager.TranslatePage(document) ; |
|
63 |
|
|
64 |
window.parent.SetAutoSize( true ) ; |
|
65 |
} |
|
66 |
|
|
67 |
</script> |
|
68 |
</head> |
|
69 |
<body style="overflow: hidden"> |
|
70 |
<div id="divAbout"> |
|
71 |
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="height: 100%"> |
|
72 |
<tr> |
|
73 |
<td colspan="2"> |
|
74 |
<img alt="" src="fck_about/logo_fckeditor.gif" width="236" height="41" align="left" /> |
|
75 |
<table width="80" border="0" cellspacing="0" cellpadding="5" bgcolor="#ffffff" align="right"> |
|
76 |
<tr> |
|
77 |
<td align="center" nowrap="nowrap" style="border-right: #000000 1px solid; border-top: #000000 1px solid; |
|
78 |
border-left: #000000 1px solid; border-bottom: #000000 1px solid"> |
|
79 |
<span fcklang="DlgAboutVersion">version</span> |
|
80 |
<br /> |
|
81 |
<b>2.6.5</b><br /> |
|
82 |
Build 23959</td> |
|
83 |
</tr> |
|
84 |
</table> |
|
85 |
</td> |
|
86 |
</tr> |
|
87 |
<tr style="height: 100%"> |
|
88 |
<td align="center" valign="middle"> |
|
89 |
<span style="font-size: 14px" dir="ltr"> |
|
90 |
<b><a href="http://www.fckeditor.net/?about" target="_blank" title="Visit the FCKeditor web site"> |
|
91 |
Support <b>Open Source</b> Software</a></b> </span> |
|
92 |
<div style="padding-top:15px"> |
|
93 |
<img alt="" src="fck_about/logo_fredck.gif" width="87" height="36" /> |
|
94 |
</div> |
|
95 |
</td> |
|
96 |
<td align="center" nowrap="nowrap" valign="middle"> |
|
97 |
<div> |
|
98 |
<div style="margin-bottom:5px" dir="ltr">Selected Sponsor</div> |
|
99 |
<a href="http://www.spellchecker.net/fckeditor/" target="_blank"><img alt="Selected Sponsor" border="0" src="fck_about/sponsors/spellchecker_net.gif" width="75" height="75" /></a> |
|
100 |
</div> |
|
101 |
</td> |
|
102 |
</tr> |
|
103 |
<tr> |
|
104 |
<td width="100%" nowrap="nowrap"> |
|
105 |
<span fcklang="DlgAboutInfo">For further information go to</span> <a href="http://www.fckeditor.net/?About" |
|
106 |
target="_blank">http://www.fckeditor.net/</a>. |
|
107 |
<br /> |
|
108 |
Copyright © 2003-2009 <a href="#" onclick="SendEMail();">Frederico Caldeira Knabben</a> |
|
109 |
</td> |
|
110 |
<td align="center"> |
|
111 |
<a href="http://www.fckeditor.net/sponsors/apply" target="_blank">Become a Sponsor</a> |
|
112 |
</td> |
|
113 |
</tr> |
|
114 |
<tr> |
|
115 |
<td> </td> |
|
116 |
<td> </td> |
|
117 |
</tr> |
|
118 |
<tr> |
|
119 |
<td align="center" valign="middle"> |
|
120 |
<span fcklang="DlgAboutModule" style="font-size: 12px" dir="ltr"> |
|
121 |
Modified for Website Baker Version 2.8<br /> |
|
122 |
Modulversion 2.9.1 |
|
123 |
</span> |
|
124 |
</td> |
|
125 |
<td> </td> |
|
126 |
</tr> |
|
127 |
<tr> |
|
128 |
<td align="center" valign="middle"> |
|
129 |
<span style="font-size: 12px" dir="ltr"> |
|
130 |
<b><a href="http://www.websitebaker.org" target="_blank" title="Visit the Website Baker web site"> |
|
131 |
Support <b>Website Baker</b> CMS</a></b> </span> |
|
132 |
<div style="padding-top:15px"> |
|
133 |
<a target="_blank" href="http://club.websitebakers.com/" title="Der Verein Website Baker Org e.V."><img alt="Website Baker Org e.V." src="fck_about/wb-logo.gif" /></a> |
|
134 |
</div> |
|
135 |
</td> |
|
136 |
<td></td> |
|
137 |
</tr> |
|
138 |
|
|
139 |
</table> |
|
140 |
</div> |
|
141 |
<div id="divLicense" style="display: none"> |
|
142 |
<p> |
|
143 |
Licensed under the terms of any of the following licenses at your |
|
144 |
choice: |
|
145 |
</p> |
|
146 |
<ul> |
|
147 |
<li style="margin-bottom:15px"> |
|
148 |
<b>GNU General Public License</b> Version 2 or later (the "GPL")<br /> |
|
149 |
<a href="http://www.gnu.org/licenses/gpl.html" target="_blank">http://www.gnu.org/licenses/gpl.html</a> |
|
150 |
</li> |
|
151 |
<li style="margin-bottom:15px"> |
|
152 |
<b>GNU Lesser General Public License</b> Version 2.1 or later (the "LGPL")<br /> |
|
153 |
<a href="http://www.gnu.org/licenses/lgpl.html" target="_blank">http://www.gnu.org/licenses/lgpl.html</a> |
|
154 |
</li> |
|
155 |
<li> |
|
156 |
<b>Mozilla Public License</b> Version 1.1 or later (the "MPL")<br /> |
|
157 |
<a href="http://www.mozilla.org/MPL/MPL-1.1.html" target="_blank">http://www.mozilla.org/MPL/MPL-1.1.html</a> |
|
158 |
</li> |
|
159 |
</ul> |
|
160 |
</div> |
|
161 |
<div id="divInfo" style="display: none" dir="ltr"> |
|
162 |
<table align="center" width="80%" border="0"> |
|
163 |
<tr> |
|
164 |
<td> |
|
165 |
<script type="text/javascript"> |
|
166 |
<!-- |
|
167 |
document.write( '<b>User Agent<\/b><br />' + window.navigator.userAgent + '<br /><br />' ) ; |
|
168 |
document.write( '<b>Browser<\/b><br />' + window.navigator.appName + ' ' + window.navigator.appVersion + '<br /><br />' ) ; |
|
169 |
document.write( '<b>Platform<\/b><br />' + window.navigator.platform + '<br /><br />' ) ; |
|
170 |
|
|
171 |
var sUserLang = '?' ; |
|
172 |
|
|
173 |
if ( window.navigator.language ) |
|
174 |
sUserLang = window.navigator.language ; |
|
175 |
else if ( window.navigator.userLanguage ) |
|
176 |
sUserLang = window.navigator.userLanguage ; |
|
177 |
|
|
178 |
document.write( '<b>Language<\/b><br />' + sUserLang ) ; |
|
179 |
//--> |
|
180 |
</script> |
|
181 |
</td> |
|
182 |
</tr> |
|
183 |
</table> |
|
184 |
</div> |
|
185 |
</body> |
|
186 |
</html> |
branches/2.8.x/wb/modules/fckeditor_2.6/fckeditor/editor/dialog/fck_anchor.html | ||
---|---|---|
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-2009 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 |
* Anchor dialog window. |
|
23 |
--> |
|
24 |
<html> |
|
25 |
<head> |
|
26 |
<title>Anchor 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 |
var FCK = oEditor.FCK ; |
|
36 |
var FCKBrowserInfo = oEditor.FCKBrowserInfo ; |
|
37 |
var FCKTools = oEditor.FCKTools ; |
|
38 |
var FCKRegexLib = oEditor.FCKRegexLib ; |
|
39 |
|
|
40 |
var oDOM = FCK.EditorDocument ; |
|
41 |
|
|
42 |
var oFakeImage = dialog.Selection.GetSelectedElement() ; |
|
43 |
|
|
44 |
var oAnchor ; |
|
45 |
|
|
46 |
if ( oFakeImage ) |
|
47 |
{ |
|
48 |
if ( oFakeImage.tagName == 'IMG' && oFakeImage.getAttribute('_fckanchor') ) |
|
49 |
oAnchor = FCK.GetRealElement( oFakeImage ) ; |
|
50 |
else |
|
51 |
oFakeImage = null ; |
|
52 |
} |
|
53 |
|
|
54 |
//Search for a real anchor |
|
55 |
if ( !oFakeImage ) |
|
56 |
{ |
|
57 |
oAnchor = FCK.Selection.MoveToAncestorNode( 'A' ) ; |
|
58 |
if ( oAnchor ) |
|
59 |
FCK.Selection.SelectNode( oAnchor ) ; |
|
60 |
} |
|
61 |
|
|
62 |
window.onload = function() |
|
63 |
{ |
|
64 |
// First of all, translate the dialog box texts |
|
65 |
oEditor.FCKLanguageManager.TranslatePage(document) ; |
|
66 |
|
|
67 |
if ( oAnchor ) |
|
68 |
GetE('txtName').value = oAnchor.name ; |
|
69 |
else |
|
70 |
oAnchor = null ; |
|
71 |
|
|
72 |
window.parent.SetOkButton( true ) ; |
|
73 |
window.parent.SetAutoSize( true ) ; |
|
74 |
|
|
75 |
SelectField( 'txtName' ) ; |
|
76 |
} |
|
77 |
|
|
78 |
function Ok() |
|
79 |
{ |
|
80 |
var sNewName = GetE('txtName').value ; |
|
81 |
|
|
82 |
// Remove any illegal character in a name attribute: |
|
83 |
// A name should start with a letter, but the validator passes anyway. |
|
84 |
sNewName = sNewName.replace( /[^\w-_\.:]/g, '_' ) ; |
|
85 |
|
|
86 |
if ( sNewName.length == 0 ) |
|
87 |
{ |
|
88 |
// Remove the anchor if the user leaves the name blank |
|
89 |
if ( oAnchor ) |
|
90 |
{ |
|
91 |
// Removes the current anchor from the document using the new command |
|
92 |
FCK.Commands.GetCommand( 'AnchorDelete' ).Execute() ; |
|
93 |
return true ; |
|
94 |
} |
|
95 |
|
|
96 |
alert( oEditor.FCKLang.DlgAnchorErrorName ) ; |
|
97 |
return false ; |
|
98 |
} |
|
99 |
|
|
100 |
oEditor.FCKUndo.SaveUndoStep() ; |
|
101 |
|
|
102 |
if ( oAnchor ) // Modifying an existent anchor. |
|
103 |
{ |
|
104 |
ReadjustLinksToAnchor( oAnchor.name, sNewName ); |
|
105 |
|
|
106 |
// Buggy explorer, bad bad browser. http://alt-tag.com/blog/archives/2006/02/ie-dom-bugs/ |
|
107 |
// Instead of just replacing the .name for the existing anchor (in order to preserve the content), we must remove the .name |
|
108 |
// and assign .name, although it won't appear until it's specially processed in fckxhtml.js |
|
109 |
|
|
110 |
// We remove the previous name |
|
111 |
oAnchor.removeAttribute( 'name' ) ; |
|
112 |
// Now we set it, but later we must process it specially |
|
113 |
oAnchor.name = sNewName ; |
|
114 |
|
|
115 |
return true ; |
|
116 |
} |
|
117 |
|
|
118 |
// Create a new anchor preserving the current selection |
|
119 |
var aNewAnchors = oEditor.FCK.CreateLink( '#' ) ; |
|
120 |
|
|
121 |
if ( aNewAnchors.length == 0 ) |
|
122 |
aNewAnchors.push( oEditor.FCK.InsertElement( 'a' ) ) ; |
|
123 |
else |
|
124 |
{ |
|
125 |
// Remove the fake href |
|
126 |
for ( var i = 0 ; i < aNewAnchors.length ; i++ ) |
|
127 |
aNewAnchors[i].removeAttribute( 'href' ) ; |
|
128 |
} |
|
129 |
|
|
130 |
// More than one anchors may have been created, so interact through all of them (see #220). |
|
131 |
for ( var i = 0 ; i < aNewAnchors.length ; i++ ) |
|
132 |
{ |
|
133 |
oAnchor = aNewAnchors[i] ; |
|
134 |
|
|
135 |
// Set the name |
|
136 |
if ( FCKBrowserInfo.IsIE ) |
|
137 |
{ |
|
138 |
// Setting anchor names directly in IE will trash the HTML code stored |
|
139 |
// in FCKTempBin after undos. See #2263. |
|
140 |
var replaceAnchor = oEditor.FCK.EditorDocument.createElement( '<a name="' + |
|
141 |
FCKTools.HTMLEncode( sNewName ).replace( '"', '"' ) + '">' ) ; |
|
142 |
oEditor.FCKDomTools.MoveChildren( oAnchor, replaceAnchor ) ; |
|
143 |
oAnchor.parentNode.replaceChild( replaceAnchor, oAnchor ) ; |
|
144 |
oAnchor = replaceAnchor ; |
|
145 |
} |
|
146 |
else |
|
147 |
oAnchor.name = sNewName ; |
|
148 |
|
|
149 |
// IE does require special processing to show the Anchor's image |
|
150 |
// Opera doesn't allow to select empty anchors |
|
151 |
if ( FCKBrowserInfo.IsIE || FCKBrowserInfo.IsOpera ) |
|
152 |
{ |
|
153 |
if ( oAnchor.innerHTML != '' ) |
|
154 |
{ |
|
155 |
if ( FCKBrowserInfo.IsIE ) |
|
156 |
oAnchor.className += ' FCK__AnchorC' ; |
|
157 |
} |
|
158 |
else |
|
159 |
{ |
|
160 |
// Create a fake image for both IE and Opera |
|
161 |
var oImg = oEditor.FCKDocumentProcessor_CreateFakeImage( 'FCK__Anchor', oAnchor.cloneNode(true) ) ; |
|
162 |
oImg.setAttribute( '_fckanchor', 'true', 0 ) ; |
|
163 |
|
|
164 |
oAnchor.parentNode.insertBefore( oImg, oAnchor ) ; |
|
165 |
oAnchor.parentNode.removeChild( oAnchor ) ; |
|
166 |
} |
|
167 |
|
|
168 |
} |
|
169 |
} |
|
170 |
|
|
171 |
return true ; |
|
172 |
} |
|
173 |
|
|
174 |
// Checks all the links in the current page pointing to the current name and changes them to the new name |
|
175 |
function ReadjustLinksToAnchor( sCurrent, sNew ) |
|
176 |
{ |
|
177 |
var oDoc = FCK.EditorDocument ; |
|
178 |
|
|
179 |
var aLinks = oDoc.getElementsByTagName( 'A' ) ; |
|
180 |
|
|
181 |
var sReference = '#' + sCurrent ; |
|
182 |
// The url of the document, so we check absolute and partial references. |
|
183 |
var sFullReference = oDoc.location.href.replace( /(#.*$)/, '') ; |
|
184 |
sFullReference += sReference ; |
|
185 |
|
|
186 |
var oLink ; |
|
187 |
var i = aLinks.length - 1 ; |
|
188 |
while ( i >= 0 && ( oLink = aLinks[i--] ) ) |
|
189 |
{ |
|
190 |
var sHRef = oLink.getAttribute( '_fcksavedurl' ) ; |
|
191 |
if ( sHRef == null ) |
|
192 |
sHRef = oLink.getAttribute( 'href' , 2 ) || '' ; |
|
193 |
|
|
194 |
if ( sHRef == sReference || sHRef == sFullReference ) |
|
195 |
{ |
|
196 |
oLink.href = '#' + sNew ; |
|
197 |
SetAttribute( oLink, '_fcksavedurl', '#' + sNew ) ; |
|
198 |
} |
|
199 |
} |
|
200 |
} |
|
201 |
|
|
202 |
</script> |
|
203 |
</head> |
|
204 |
<body style="overflow: hidden"> |
|
205 |
<table height="100%" width="100%"> |
|
206 |
<tr> |
|
207 |
<td align="center"> |
|
208 |
<table border="0" cellpadding="0" cellspacing="0" width="80%"> |
|
209 |
<tr> |
|
210 |
<td> |
|
211 |
<span fckLang="DlgAnchorName">Anchor Name</span><BR> |
|
212 |
<input id="txtName" style="WIDTH: 100%" type="text"> |
|
213 |
</td> |
|
214 |
</tr> |
|
215 |
</table> |
|
216 |
</td> |
|
217 |
</tr> |
|
218 |
</table> |
|
219 |
</body> |
|
220 |
</html> |
branches/2.8.x/wb/modules/fckeditor_2.6/fckeditor/editor/dialog/fck_replace.html | ||
---|---|---|
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-2009 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 |
* "Find" and "Replace" dialog box window. |
|
23 |
--> |
|
24 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
25 |
<head> |
|
26 |
<title></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 |
var dialogArguments = dialog.Args() ; |
|
35 |
|
|
36 |
var FCKLang = oEditor.FCKLang ; |
|
37 |
var FCKDomTools = oEditor.FCKDomTools ; |
|
38 |
var FCKDomRange = oEditor.FCKDomRange ; |
|
39 |
var FCKListsLib = oEditor.FCKListsLib ; |
|
40 |
var FCKTools = oEditor.FCKTools ; |
|
41 |
var EditorDocument = oEditor.FCK.EditorDocument ; |
|
42 |
var HighlightStyle = oEditor.FCKStyles.GetStyle( '_FCK_SelectionHighlight' ) ; |
|
43 |
|
|
44 |
dialog.AddTab( 'Find', FCKLang.DlgFindTitle ) ; |
|
45 |
dialog.AddTab( 'Replace', FCKLang.DlgReplaceTitle ) ; |
|
46 |
var idMap = {} ; |
|
47 |
|
|
48 |
function OnDialogTabChange( tabCode ) |
|
49 |
{ |
|
50 |
ShowE( 'divFind', ( tabCode == 'Find' ) ) ; |
|
51 |
ShowE( 'divReplace', ( tabCode == 'Replace' ) ) ; |
|
52 |
idMap['FindText'] = 'txtFind' + tabCode ; |
|
53 |
idMap['CheckCase'] = 'chkCase' + tabCode ; |
|
54 |
idMap['CheckWord'] = 'chkWord' + tabCode ; |
|
55 |
|
|
56 |
if ( tabCode == 'Replace' ) |
|
57 |
dialog.SetAutoSize( true ) ; |
|
58 |
} |
|
59 |
|
|
60 |
GetNextNonEmptyTextNode = function( node, stopNode ) |
|
61 |
{ |
|
62 |
while ( ( node = FCKDomTools.GetNextSourceNode( node, false, 3, stopNode ) ) && node && node.length < 1 ) |
|
63 |
1 ; |
|
64 |
return node ; |
|
65 |
} |
|
66 |
|
|
67 |
CharacterCursor = function( arg ) |
|
68 |
{ |
|
69 |
if ( arg.nodeType && arg.nodeType == 9 ) |
|
70 |
{ |
|
71 |
this._textNode = GetNextNonEmptyTextNode( arg.body, arg.documentElement ) ; |
|
72 |
this._offset = 0 ; |
|
73 |
this._doc = arg ; |
|
74 |
} |
|
75 |
else |
|
76 |
{ |
|
77 |
this._textNode = arguments[0] ; |
|
78 |
this._offset = arguments[1] ; |
|
79 |
this._doc = FCKTools.GetElementDocument( arguments[0] ) ; |
|
80 |
} |
|
81 |
} |
|
82 |
CharacterCursor.prototype = |
|
83 |
{ |
|
84 |
GetCharacter : function() |
|
85 |
{ |
|
86 |
return ( this._textNode && this._textNode.nodeValue.charAt( this._offset ) ) || null ; |
|
87 |
}, |
|
88 |
|
|
89 |
// Non-normalized. |
|
90 |
GetTextNode : function() |
|
91 |
{ |
|
92 |
return this._textNode ; |
|
93 |
}, |
|
94 |
|
|
95 |
// Non-normalized. |
|
96 |
GetIndex : function() |
|
97 |
{ |
|
98 |
return this._offset ; |
|
99 |
}, |
|
100 |
|
|
101 |
// Return value means whehther we've crossed a line break or a paragraph boundary. |
|
102 |
MoveNext : function() |
|
103 |
{ |
|
104 |
if ( this._offset < this._textNode.length - 1 ) |
|
105 |
{ |
|
106 |
this._offset++ ; |
|
107 |
return false ; |
|
108 |
} |
|
109 |
|
|
110 |
var crossed = false ; |
|
111 |
var curNode = this._textNode ; |
|
112 |
while ( ( curNode = FCKDomTools.GetNextSourceNode( curNode ) ) |
|
113 |
&& curNode && ( curNode.nodeType != 3 || curNode.length < 1 ) ) |
|
114 |
{ |
|
115 |
var tag = curNode.nodeName.toLowerCase() ; |
|
116 |
if ( FCKListsLib.BlockElements[tag] || tag == 'br' ) |
|
117 |
crossed = true ; |
|
118 |
} |
|
119 |
|
|
120 |
this._textNode = curNode ; |
|
121 |
this._offset = 0 ; |
|
122 |
return crossed ; |
|
123 |
}, |
|
124 |
|
|
125 |
// Return value means whehther we've crossed a line break or a paragraph boundary. |
|
126 |
MoveBack : function() |
|
127 |
{ |
|
128 |
if ( this._offset > 0 && this._textNode.length > 0 ) |
|
129 |
{ |
|
130 |
this._offset = Math.min( this._offset - 1, this._textNode.length - 1 ) ; |
|
131 |
return false ; |
|
132 |
} |
|
133 |
|
|
134 |
var crossed = false ; |
|
135 |
var curNode = this._textNode ; |
|
136 |
while ( ( curNode = FCKDomTools.GetPreviousSourceNode( curNode ) ) |
|
137 |
&& curNode && ( curNode.nodeType != 3 || curNode.length < 1 ) ) |
|
138 |
{ |
|
139 |
var tag = curNode.nodeName.toLowerCase() ; |
|
140 |
if ( FCKListsLib.BlockElements[tag] || tag == 'br' ) |
|
141 |
crossed = true ; |
|
142 |
} |
|
143 |
|
|
144 |
this._textNode = curNode ; |
|
145 |
this._offset = curNode && curNode.length - 1 ; |
|
146 |
return crossed ; |
|
147 |
}, |
|
148 |
|
|
149 |
Clone : function() |
|
150 |
{ |
|
151 |
return new CharacterCursor( this._textNode, this._offset ) ; |
|
152 |
} |
|
153 |
} ; |
|
154 |
|
|
155 |
CharacterRange = function( initCursor, maxLength ) |
|
156 |
{ |
|
157 |
this._cursors = initCursor.push ? initCursor : [initCursor] ; |
|
158 |
this._maxLength = maxLength ; |
|
159 |
this._highlightRange = null ; |
|
160 |
} |
|
161 |
CharacterRange.prototype = |
|
162 |
{ |
|
163 |
ToDomRange : function() |
|
164 |
{ |
|
165 |
var firstCursor = this._cursors[0] ; |
|
166 |
var lastCursor = this._cursors[ this._cursors.length - 1 ] ; |
|
167 |
var domRange = new FCKDomRange( FCKTools.GetElementWindow( firstCursor.GetTextNode() ) ) ; |
|
168 |
var w3cRange = domRange._Range = domRange.CreateRange() ; |
|
169 |
w3cRange.setStart( firstCursor.GetTextNode(), firstCursor.GetIndex() ) ; |
|
170 |
w3cRange.setEnd( lastCursor.GetTextNode(), lastCursor.GetIndex() + 1 ) ; |
|
171 |
domRange._UpdateElementInfo() ; |
|
172 |
return domRange ; |
|
173 |
}, |
|
174 |
|
|
175 |
Highlight : function() |
|
176 |
{ |
|
177 |
if ( this._cursors.length < 1 ) |
|
178 |
return ; |
|
179 |
|
|
180 |
var domRange = this.ToDomRange() ; |
|
181 |
HighlightStyle.ApplyToRange( domRange, false, true ) ; |
|
182 |
this._highlightRange = domRange ; |
|
183 |
|
|
184 |
var charRange = CharacterRange.CreateFromDomRange( domRange ) ; |
|
185 |
var focusNode = domRange.StartNode ; |
|
186 |
if ( focusNode.nodeType != 1 ) |
|
187 |
focusNode = focusNode.parentNode ; |
|
188 |
FCKDomTools.ScrollIntoView( focusNode, false ) ; |
|
189 |
this._cursors = charRange._cursors ; |
|
190 |
}, |
|
191 |
|
|
192 |
RemoveHighlight : function() |
|
193 |
{ |
|
194 |
if ( this._highlightRange ) |
|
195 |
{ |
|
196 |
HighlightStyle.RemoveFromRange( this._highlightRange, false, true ) ; |
|
197 |
var charRange = CharacterRange.CreateFromDomRange( this._highlightRange ) ; |
|
198 |
this._cursors = charRange._cursors ; |
|
199 |
this._highlightRange = null ; |
|
200 |
} |
|
201 |
}, |
|
202 |
|
|
203 |
GetHighlightDomRange : function() |
|
204 |
{ |
|
205 |
return this._highlightRange; |
|
206 |
}, |
|
207 |
|
|
208 |
MoveNext : function() |
|
209 |
{ |
|
210 |
var next = this._cursors[ this._cursors.length - 1 ].Clone() ; |
|
211 |
var retval = next.MoveNext() ; |
|
212 |
if ( retval ) |
|
213 |
this._cursors = [] ; |
|
214 |
this._cursors.push( next ) ; |
|
215 |
if ( this._cursors.length > this._maxLength ) |
|
216 |
this._cursors.shift() ; |
|
217 |
return retval ; |
|
218 |
}, |
|
219 |
|
|
220 |
MoveBack : function() |
|
221 |
{ |
|
222 |
var prev = this._cursors[0].Clone() ; |
|
223 |
var retval = prev.MoveBack() ; |
|
224 |
if ( retval ) |
|
225 |
this._cursors = [] ; |
|
226 |
this._cursors.unshift( prev ) ; |
|
227 |
if ( this._cursors.length > this._maxLength ) |
|
228 |
this._cursors.pop() ; |
|
229 |
return retval ; |
|
230 |
}, |
|
231 |
|
|
232 |
GetEndCharacter : function() |
|
233 |
{ |
|
234 |
if ( this._cursors.length < 1 ) |
|
235 |
return null ; |
|
236 |
var retval = this._cursors[ this._cursors.length - 1 ].GetCharacter() ; |
|
237 |
return retval ; |
|
238 |
}, |
|
239 |
|
|
240 |
GetNextRange : function( len ) |
|
241 |
{ |
|
242 |
if ( this._cursors.length == 0 ) |
|
243 |
return null ; |
|
244 |
var cur = this._cursors[ this._cursors.length - 1 ].Clone() ; |
|
245 |
cur.MoveNext() ; |
Also available in: Unified diff
Update FCKeditor to Version 2.6.5 Modulversion 2.9.1