fck_docprops.html 22 KB

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