source: trunk/admin/inc/FCKeditor/editor/dialog/fck_docprops.html@ 2

Last change on this file since 2 was 2, checked in by root, 15 years ago

importo il progetto

File size: 21.0 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<!--
3 * FCKeditor - The text editor for internet
4 * Copyright (C) 2003-2006 Frederico Caldeira Knabben
5 *
6 * Licensed under the terms of the GNU Lesser General Public License:
7 * http://www.opensource.org/licenses/lgpl-license.php
8 *
9 * For further information visit:
10 * http://www.fckeditor.net/
11 *
12 * "Support Open Source software. What about a donation today?"
13 *
14 * File Name: fck_docprops.html
15 * Link dialog window.
16 *
17 * File Authors:
18 * Frederico Caldeira Knabben (fredck@fckeditor.net)
19-->
20<html xmlns="http://www.w3.org/1999/xhtml">
21<head>
22 <title></title>
23 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
24 <meta content="noindex, nofollow" name="robots" />
25 <script src="common/fck_dialog_common.js" type="text/javascript"></script>
26 <script type="text/javascript">
27
28var oEditor = window.parent.InnerDialogLoaded() ;
29var FCK = oEditor.FCK ;
30var FCKLang = oEditor.FCKLang ;
31var FCKConfig = oEditor.FCKConfig ;
32
33//#### Dialog Tabs
34
35// Set the dialog tabs.
36window.parent.AddTab( 'General' , FCKLang.DlgDocGeneralTab ) ;
37window.parent.AddTab( 'Background' , FCKLang.DlgDocBackTab ) ;
38window.parent.AddTab( 'Colors' , FCKLang.DlgDocColorsTab ) ;
39window.parent.AddTab( 'Meta' , FCKLang.DlgDocMetaTab ) ;
40
41// Function called when a dialog tag is selected.
42function OnDialogTabChange( tabCode )
43{
44 ShowE( 'divGeneral' , ( tabCode == 'General' ) ) ;
45 ShowE( 'divBackground' , ( tabCode == 'Background' ) ) ;
46 ShowE( 'divColors' , ( tabCode == 'Colors' ) ) ;
47 ShowE( 'divMeta' , ( tabCode == 'Meta' ) ) ;
48
49 ShowE( 'ePreview' , ( tabCode == 'Background' || tabCode == 'Colors' ) ) ;
50}
51
52//#### Get Base elements from the document: BEGIN
53
54// The HTML element of the document.
55var oHTML = FCK.EditorDocument.getElementsByTagName('html')[0] ;
56
57// The HEAD element of the document.
58var oHead = oHTML.getElementsByTagName('head')[0] ;
59
60var oBody = FCK.EditorDocument.body ;
61
62// This object contains all META tags defined in the document.
63var oMetaTags = new Object() ;
64
65// Get all META tags defined in the document.
66var aMetas = oHead.getElementsByTagName('meta') ;
67
68// Loop throw all METAs and put it in the HashTable.
69for ( var i = 0 ; i < aMetas.length ; i++ )
70{
71 // Try to get the "name" attribute.
72 var sName = GetAttribute( aMetas[i], 'name', GetAttribute( aMetas[i], '___fcktoreplace:name', '' ) ) ;
73
74 // If no "name", try with the "http-equiv" attribute.
75 if ( sName.length == 0 )
76 {
77 if ( document.all )
78 {
79 // Get the http-equiv value from the outerHTML.
80 var oHttpEquivMatch = aMetas[i].outerHTML.match( oEditor.FCKRegexLib.MetaHttpEquiv ) ;
81 if ( oHttpEquivMatch )
82 sName = oHttpEquivMatch[1] ;
83 }
84 else
85 sName = GetAttribute( aMetas[i], 'http-equiv', '' ) ;
86 }
87
88 if ( sName.length > 0 )
89 oMetaTags[ sName.toLowerCase() ] = aMetas[i] ;
90}
91
92//#### END
93
94// Set a META tag in the document.
95function SetMetadata( name, content, isHttp )
96{
97 if ( content.length == 0 )
98 {
99 RemoveMetadata( name ) ;
100 return ;
101 }
102
103 var oMeta = oMetaTags[ name.toLowerCase() ] ;
104
105 if ( !oMeta )
106 {
107 oMeta = oHead.appendChild( FCK.EditorDocument.createElement('META') ) ;
108
109 if ( isHttp )
110 SetAttribute( oMeta, 'http-equiv', name ) ;
111 else
112 {
113 // On IE, it is not possible to set the "name" attribute of the META tag.
114 // So a temporary attribute is used and it is replaced when getting the
115 // editor's HTML/XHTML value. This is sad, I know :(
116 if ( document.all )
117 SetAttribute( oMeta, '___fcktoreplace:name', name ) ;
118 else
119 SetAttribute( oMeta, 'name', name ) ;
120 }
121
122 oMetaTags[ name.toLowerCase() ] = oMeta ;
123 }
124
125 oMeta.content = content ;
126}
127
128function RemoveMetadata( name )
129{
130 var oMeta = oMetaTags[ name.toLowerCase() ] ;
131
132 if ( oMeta && oMeta != null )
133 {
134 oMeta.parentNode.removeChild( oMeta ) ;
135 oMetaTags[ name.toLowerCase() ] = null ;
136 }
137}
138
139function GetMetadata( name )
140{
141 var oMeta = oMetaTags[ name.toLowerCase() ] ;
142
143 if ( oMeta && oMeta != null )
144 return oMeta.content ;
145 else
146 return '' ;
147}
148
149window.onload = function ()
150{
151 // Show/Hide the "Browse Server" button.
152 GetE('tdBrowse').style.display = oEditor.FCKConfig.ImageBrowser ? "" : "none";
153
154 // First of all, translate the dialog box texts
155 oEditor.FCKLanguageManager.TranslatePage( document ) ;
156
157 FillFields() ;
158
159 UpdatePreview() ;
160
161 // Show the "Ok" button.
162 window.parent.SetOkButton( true ) ;
163
164 window.parent.SetAutoSize( true ) ;
165}
166
167function FillFields()
168{
169 // ### General Info
170 GetE('txtPageTitle').value = FCK.EditorDocument.title ;
171
172 GetE('selDirection').value = GetAttribute( oHTML, 'dir', '' ) ;
173 GetE('txtLang').value = GetAttribute( oHTML, 'xml:lang', GetAttribute( oHTML, 'lang', '' ) ) ; // "xml:lang" takes precedence to "lang".
174
175 // Character Set Encoding.
176// if ( document.all )
177// var sCharSet = FCK.EditorDocument.charset ;
178// else
179 var sCharSet = GetMetadata( 'Content-Type' ) ;
180
181 if ( sCharSet != null && sCharSet.length > 0 )
182 {
183// if ( !document.all )
184 sCharSet = sCharSet.match( /[^=]*$/ ) ;
185
186 GetE('selCharSet').value = sCharSet ;
187
188 if ( GetE('selCharSet').selectedIndex == -1 )
189 {
190 GetE('selCharSet').value = '...' ;
191 GetE('txtCustomCharSet').value = sCharSet ;
192
193 CheckOther( GetE('selCharSet'), 'txtCustomCharSet' ) ;
194 }
195 }
196
197 // Document Type.
198 if ( FCK.DocTypeDeclaration && FCK.DocTypeDeclaration.length > 0 )
199 {
200 GetE('selDocType').value = FCK.DocTypeDeclaration ;
201
202 if ( GetE('selDocType').selectedIndex == -1 )
203 {
204 GetE('selDocType').value = '...' ;
205 GetE('txtDocType').value = FCK.DocTypeDeclaration ;
206
207 CheckOther( GetE('selDocType'), 'txtDocType' ) ;
208 }
209 }
210
211 // Document Type.
212 GetE('chkIncXHTMLDecl').checked = ( FCK.XmlDeclaration && FCK.XmlDeclaration.length > 0 ) ;
213
214 // ### Background
215 GetE('txtBackColor').value = GetAttribute( oBody, 'bgColor' , '' ) ;
216 GetE('txtBackImage').value = GetAttribute( oBody, 'background' , '' ) ;
217 GetE('chkBackNoScroll').checked = ( GetAttribute( oBody, 'bgProperties', '' ).toLowerCase() == 'fixed' ) ;
218
219 // ### Colors
220 GetE('txtColorText').value = GetAttribute( oBody, 'text' , '' ) ;
221 GetE('txtColorLink').value = GetAttribute( oBody, 'link' , '' ) ;
222 GetE('txtColorVisited').value = GetAttribute( oBody, 'vLink' , '' ) ;
223 GetE('txtColorActive').value = GetAttribute( oBody, 'aLink' , '' ) ;
224
225 // ### Margins
226 GetE('txtMarginTop').value = GetAttribute( oBody, 'topMargin' , '' ) ;
227 GetE('txtMarginLeft').value = GetAttribute( oBody, 'leftMargin' , '' ) ;
228 GetE('txtMarginRight').value = GetAttribute( oBody, 'rightMargin' , '' ) ;
229 GetE('txtMarginBottom').value = GetAttribute( oBody, 'bottomMargin' , '' ) ;
230
231 // ### Meta Data
232 GetE('txtMetaKeywords').value = GetMetadata( 'keywords' ) ;
233 GetE('txtMetaDescription').value = GetMetadata( 'description' ) ;
234 GetE('txtMetaAuthor').value = GetMetadata( 'author' ) ;
235 GetE('txtMetaCopyright').value = GetMetadata( 'copyright' ) ;
236}
237
238// Called when the "Ok" button is clicked.
239function Ok()
240{
241 // ### General Info
242 FCK.EditorDocument.title = GetE('txtPageTitle').value ;
243
244 var oHTML = FCK.EditorDocument.getElementsByTagName('html')[0] ;
245
246 SetAttribute( oHTML, 'dir' , GetE('selDirection').value ) ;
247 SetAttribute( oHTML, 'lang' , GetE('txtLang').value ) ;
248 SetAttribute( oHTML, 'xml:lang' , GetE('txtLang').value ) ;
249
250 // Character Set Enconding.
251 var sCharSet = GetE('selCharSet').value ;
252 if ( sCharSet == '...' )
253 sCharSet = GetE('txtCustomCharSet').value ;
254
255 if ( sCharSet.length > 0 )
256 sCharSet = 'text/html; charset=' + sCharSet ;
257
258// if ( document.all )
259// FCK.EditorDocument.charset = sCharSet ;
260// else
261 SetMetadata( 'Content-Type', sCharSet, true ) ;
262
263 // Document Type
264 var sDocType = GetE('selDocType').value ;
265 if ( sDocType == '...' )
266 sDocType = GetE('txtDocType').value ;
267
268 FCK.DocTypeDeclaration = sDocType ;
269
270 // XHTML Declarations.
271 if ( GetE('chkIncXHTMLDecl').checked )
272 {
273 if ( sCharSet.length == 0 )
274 sCharSet = 'utf-8' ;
275
276 FCK.XmlDeclaration = '<?xml version="1.0" encoding="' + sCharSet + '"?>' ;
277
278 SetAttribute( oHTML, 'xmlns', 'http://www.w3.org/1999/xhtml' ) ;
279 }
280 else
281 {
282 FCK.XmlDeclaration = null ;
283 oHTML.removeAttribute( 'xmlns', 0 ) ;
284 }
285
286 // ### Background
287 SetAttribute( oBody, 'bgcolor' , GetE('txtBackColor').value ) ;
288 SetAttribute( oBody, 'background' , GetE('txtBackImage').value ) ;
289 SetAttribute( oBody, 'bgproperties' , GetE('chkBackNoScroll').checked ? 'fixed' : '' ) ;
290
291 // ### Colors
292 SetAttribute( oBody, 'text' , GetE('txtColorText').value ) ;
293 SetAttribute( oBody, 'link' , GetE('txtColorLink').value ) ;
294 SetAttribute( oBody, 'vlink', GetE('txtColorVisited').value ) ;
295 SetAttribute( oBody, 'alink', GetE('txtColorActive').value ) ;
296
297 // ### Margins
298 SetAttribute( oBody, 'topmargin' , GetE('txtMarginTop').value ) ;
299 SetAttribute( oBody, 'leftmargin' , GetE('txtMarginLeft').value ) ;
300 SetAttribute( oBody, 'rightmargin' , GetE('txtMarginRight').value ) ;
301 SetAttribute( oBody, 'bottommargin' , GetE('txtMarginBottom').value ) ;
302
303 // ### Meta data
304 SetMetadata( 'keywords' , GetE('txtMetaKeywords').value ) ;
305 SetMetadata( 'description' , GetE('txtMetaDescription').value ) ;
306 SetMetadata( 'author' , GetE('txtMetaAuthor').value ) ;
307 SetMetadata( 'copyright' , GetE('txtMetaCopyright').value ) ;
308
309 return true ;
310}
311
312var bPreviewIsLoaded = false ;
313var oPreviewWindow ;
314var oPreviewBody ;
315
316// Called by the Preview page when loaded.
317function OnPreviewLoad( previewWindow, previewBody )
318{
319 oPreviewWindow = previewWindow ;
320 oPreviewBody = previewBody ;
321
322 bPreviewIsLoaded = true ;
323 UpdatePreview() ;
324}
325
326function UpdatePreview()
327{
328 if ( !bPreviewIsLoaded )
329 return ;
330
331 // ### Background
332 SetAttribute( oPreviewBody, 'bgcolor' , GetE('txtBackColor').value ) ;
333 SetAttribute( oPreviewBody, 'background' , GetE('txtBackImage').value ) ;
334 SetAttribute( oPreviewBody, 'bgproperties' , GetE('chkBackNoScroll').checked ? 'fixed' : '' ) ;
335
336 // ### Colors
337 SetAttribute( oPreviewBody, 'text', GetE('txtColorText').value ) ;
338
339 oPreviewWindow.SetLinkColor( GetE('txtColorLink').value ) ;
340 oPreviewWindow.SetVisitedColor( GetE('txtColorVisited').value ) ;
341 oPreviewWindow.SetActiveColor( GetE('txtColorActive').value ) ;
342}
343
344function CheckOther( combo, txtField )
345{
346 var bNotOther = ( combo.value != '...' ) ;
347
348 GetE(txtField).style.backgroundColor = ( bNotOther ? '#cccccc' : '' ) ;
349 GetE(txtField).disabled = bNotOther ;
350}
351
352function SetColor( inputId, color )
353{
354 GetE( inputId ).value = color + '' ;
355 UpdatePreview() ;
356}
357
358function SelectBackColor( color ) { SetColor('txtBackColor', color ) ; }
359function SelectColorText( color ) { SetColor('txtColorText', color ) ; }
360function SelectColorLink( color ) { SetColor('txtColorLink', color ) ; }
361function SelectColorVisited( color ) { SetColor('txtColorVisited', color ) ; }
362function SelectColorActive( color ) { SetColor('txtColorActive', color ) ; }
363
364function SelectColor( wich )
365{
366 switch ( wich )
367 {
368 case 'Back' : oEditor.FCKDialog.OpenDialog( 'FCKDialog_Color', FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 400, 330, SelectBackColor, window ) ; return ;
369 case 'ColorText' : oEditor.FCKDialog.OpenDialog( 'FCKDialog_Color', FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 400, 330, SelectColorText, window ) ; return ;
370 case 'ColorLink' : oEditor.FCKDialog.OpenDialog( 'FCKDialog_Color', FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 400, 330, SelectColorLink, window ) ; return ;
371 case 'ColorVisited' : oEditor.FCKDialog.OpenDialog( 'FCKDialog_Color', FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 400, 330, SelectColorVisited, window ) ; return ;
372 case 'ColorActive' : oEditor.FCKDialog.OpenDialog( 'FCKDialog_Color', FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 400, 330, SelectColorActive, window ) ; return ;
373 }
374}
375
376function BrowseServerBack()
377{
378 OpenFileBrowser( FCKConfig.ImageBrowserURL, FCKConfig.ImageBrowserWindowWidth, FCKConfig.ImageBrowserWindowHeight ) ;
379}
380
381function SetUrl( url )
382{
383 GetE('txtBackImage').value = url ;
384 UpdatePreview() ;
385}
386
387 </script>
388</head>
389<body style="overflow: hidden">
390 <table cellspacing="0" cellpadding="0" width="100%" border="0" style="height: 100%">
391 <tr>
392 <td valign="top" style="height: 100%">
393 <div id="divGeneral">
394 <span fcklang="DlgDocPageTitle">Page Title</span><br />
395 <input id="txtPageTitle" style="width: 100%" type="text" />
396 <br />
397 <table cellspacing="0" cellpadding="0" border="0">
398 <tr>
399 <td>
400 <span fcklang="DlgDocLangDir">Language Direction</span><br />
401 <select id="selDirection">
402 <option value="" selected="selected"></option>
403 <option value="ltr" fcklang="DlgDocLangDirLTR">Left to Right (LTR)</option>
404 <option value="rtl" fcklang="DlgDocLangDirRTL">Right to Left (RTL)</option>
405 </select>
406 </td>
407 <td>
408 &nbsp;&nbsp;&nbsp;</td>
409 <td>
410 <span fcklang="DlgDocLangCode">Language Code</span><br />
411 <input id="txtLang" type="text" />
412 </td>
413 </tr>
414 </table>
415 <br />
416 <table cellspacing="0" cellpadding="0" width="100%" border="0">
417 <tr>
418 <td style="white-space: nowrap">
419 <span fcklang="DlgDocCharSet">Character Set Encoding</span><br />
420 <select id="selCharSet" onchange="CheckOther( this, 'txtCustomCharSet' );">
421 <option value="" selected="selected"></option>
422 <option value="us-ascii">ASCII</option>
423 <option fcklang="DlgDocCharSetCE" value="iso-8859-2">Central European</option>
424 <option fcklang="DlgDocCharSetCT" value="big5">Chinese Traditional (Big5)</option>
425 <option fcklang="DlgDocCharSetCR" value="iso-8859-5">Cyrillic</option>
426 <option fcklang="DlgDocCharSetGR" value="iso-8859-7">Greek</option>
427 <option fcklang="DlgDocCharSetJP" value="iso-2022-jp">Japanese</option>
428 <option fcklang="DlgDocCharSetKR" value="iso-2022-kr">Korean</option>
429 <option fcklang="DlgDocCharSetTR" value="iso-8859-9">Turkish</option>
430 <option fcklang="DlgDocCharSetUN" value="utf-8">Unicode (UTF-8)</option>
431 <option fcklang="DlgDocCharSetWE" value="iso-8859-1">Western European</option>
432 <option fcklang="DlgOpOther" value="...">&lt;Other&gt;</option>
433 </select>
434 </td>
435 <td>
436 &nbsp;&nbsp;&nbsp;</td>
437 <td width="100%">
438 <span fcklang="DlgDocCharSetOther">Other Character Set Encoding</span><br />
439 <input id="txtCustomCharSet" style="width: 100%; background-color: #cccccc" disabled="disabled"
440 type="text" />
441 </td>
442 </tr>
443 <tr>
444 <td colspan="3">
445 &nbsp;</td>
446 </tr>
447 <tr>
448 <td nowrap="nowrap">
449 <span fcklang="DlgDocDocType">Document Type Heading</span><br />
450 <select id="selDocType" name="selDocType" onchange="CheckOther( this, 'txtDocType' );">
451 <option value="" selected="selected"></option>
452 <option value='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">'>HTML
453 4.01 Transitional</option>
454 <option value='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">'>
455 HTML 4.01 Strict</option>
456 <option value='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">'>
457 HTML 4.01 Frameset</option>
458 <option value='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'>
459 XHTML 1.0 Transitional</option>
460 <option value='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'>
461 XHTML 1.0 Strict</option>
462 <option value='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">'>
463 XHTML 1.0 Frameset</option>
464 <option value='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'>
465 XHTML 1.1</option>
466 <option value='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">'>HTML 3.2</option>
467 <option value='<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">'>HTML 2.0</option>
468 <option value="..." fcklang="DlgOpOther">&lt;Other&gt;</option>
469 </select>
470 </td>
471 <td>
472 </td>
473 <td width="100%">
474 <span fcklang="DlgDocDocTypeOther">Other Document Type Heading</span><br />
475 <input id="txtDocType" style="width: 100%; background-color: #cccccc" disabled="disabled"
476 type="text" />
477 </td>
478 </tr>
479 </table>
480 <br />
481 <input id="chkIncXHTMLDecl" type="checkbox" />
482 <label for="chkIncXHTMLDecl" fcklang="DlgDocIncXHTML">
483 Include XHTML Declarations</label>
484 </div>
485 <div id="divBackground" style="display: none">
486 <span fcklang="DlgDocBgColor">Background Color</span><br />
487 <input id="txtBackColor" type="text" onchange="UpdatePreview();" onkeyup="UpdatePreview();" />&nbsp;<input
488 id="btnSelBackColor" onclick="SelectColor( 'Back' )" type="button" value="Select..."
489 fcklang="DlgCellBtnSelect" /><br />
490 <br />
491 <span fcklang="DlgDocBgImage">Background Image URL</span><br />
492 <table cellspacing="0" cellpadding="0" width="100%" border="0">
493 <tr>
494 <td width="100%">
495 <input id="txtBackImage" style="width: 100%" type="text" onchange="UpdatePreview();"
496 onkeyup="UpdatePreview();" /></td>
497 <td id="tdBrowse" nowrap="nowrap">
498 &nbsp;<input id="btnBrowse" onclick="BrowseServerBack();" type="button" fcklang="DlgBtnBrowseServer"
499 value="Browse Server" /></td>
500 </tr>
501 </table>
502 <input id="chkBackNoScroll" type="checkbox" onclick="UpdatePreview();" />
503 <label for="chkBackNoScroll" fcklang="DlgDocBgNoScroll">
504 Nonscrolling Background</label>
505 </div>
506 <div id="divColors" style="display: none">
507 <table cellspacing="0" cellpadding="0" width="100%" border="0">
508 <tr>
509 <td>
510 <span fcklang="DlgDocCText">Text</span><br />
511 <input id="txtColorText" type="text" onchange="UpdatePreview();" onkeyup="UpdatePreview();" /><input
512 onclick="SelectColor( 'ColorText' )" type="button" value="Select..." fcklang="DlgCellBtnSelect" />
513 <br />
514 <span fcklang="DlgDocCLink">Link</span><br />
515 <input id="txtColorLink" type="text" onchange="UpdatePreview();" onkeyup="UpdatePreview();" /><input
516 onclick="SelectColor( 'ColorLink' )" type="button" value="Select..." fcklang="DlgCellBtnSelect" />
517 <br />
518 <span fcklang="DlgDocCVisited">Visited Link</span><br />
519 <input id="txtColorVisited" type="text" onchange="UpdatePreview();" onkeyup="UpdatePreview();" /><input
520 onclick="SelectColor( 'ColorVisited' )" type="button" value="Select..." fcklang="DlgCellBtnSelect" />
521 <br />
522 <span fcklang="DlgDocCActive">Active Link</span><br />
523 <input id="txtColorActive" type="text" onchange="UpdatePreview();" onkeyup="UpdatePreview();" /><input
524 onclick="SelectColor( 'ColorActive' )" type="button" value="Select..." fcklang="DlgCellBtnSelect" />
525 </td>
526 <td valign="middle" align="center">
527 <table cellspacing="2" cellpadding="0" border="0">
528 <tr>
529 <td>
530 <span fcklang="DlgDocMargins">Page Margins</span></td>
531 </tr>
532 <tr>
533 <td style="border: #000000 1px solid; padding: 5px">
534 <table cellpadding="0" cellspacing="0" border="0" dir="ltr">
535 <tr>
536 <td align="center" colspan="3">
537 <span fcklang="DlgDocMaTop">Top</span><br />
538 <input id="txtMarginTop" type="text" size="3" />
539 </td>
540 </tr>
541 <tr>
542 <td align="left">
543 <span fcklang="DlgDocMaLeft">Left</span><br />
544 <input id="txtMarginLeft" type="text" size="3" />
545 </td>
546 <td>
547 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
548 <td align="right">
549 <span fcklang="DlgDocMaRight">Right</span><br />
550 <input id="txtMarginRight" type="text" size="3" />
551 </td>
552 </tr>
553 <tr>
554 <td align="center" colspan="3">
555 <span fcklang="DlgDocMaBottom">Bottom</span><br />
556 <input id="txtMarginBottom" type="text" size="3" />
557 </td>
558 </tr>
559 </table>
560 </td>
561 </tr>
562 </table>
563 </td>
564 </tr>
565 </table>
566 </div>
567 <div id="divMeta" style="display: none">
568 <span fcklang="DlgDocMeIndex">Document Indexing Keywords (comma separated)</span><br />
569 <textarea id="txtMetaKeywords" style="width: 100%" rows="2" cols="20"></textarea>
570 <br />
571 <span fcklang="DlgDocMeDescr">Document Description</span><br />
572 <textarea id="txtMetaDescription" style="width: 100%" rows="4" cols="20"></textarea>
573 <br />
574 <span fcklang="DlgDocMeAuthor">Author</span><br />
575 <input id="txtMetaAuthor" style="width: 100%" type="text" /><br />
576 <br />
577 <span fcklang="DlgDocMeCopy">Copyright</span><br />
578 <input id="txtMetaCopyright" type="text" style="width: 100%" />
579 </div>
580 </td>
581 </tr>
582 <tr id="ePreview" style="display: none">
583 <td>
584 <span fcklang="DlgDocPreview">Preview</span><br />
585 <iframe id="frmPreview" src="fck_docprops/fck_document_preview.html" width="100%"
586 height="100"></iframe>
587 </td>
588 </tr>
589 </table>
590</body>
591</html>
Note: See TracBrowser for help on using the repository browser.