fck_textarea.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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-2010 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. * Text Area dialog window.
  23. -->
  24. <html>
  25. <head>
  26. <title>Text Area 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. var dialog = window.parent ;
  32. var oEditor = dialog.InnerDialogLoaded() ;
  33. // Gets the document DOM
  34. var oDOM = oEditor.FCK.EditorDocument ;
  35. var oActiveEl = dialog.Selection.GetSelectedElement() ;
  36. window.onload = function()
  37. {
  38. // First of all, translate the dialog box texts
  39. oEditor.FCKLanguageManager.TranslatePage(document) ;
  40. if ( oActiveEl && oActiveEl.tagName == 'TEXTAREA' )
  41. {
  42. GetE('txtName').value = oActiveEl.name ;
  43. GetE('txtCols').value = GetAttribute( oActiveEl, 'cols' ) ;
  44. GetE('txtRows').value = GetAttribute( oActiveEl, 'rows' ) ;
  45. }
  46. else
  47. oActiveEl = null ;
  48. dialog.SetOkButton( true ) ;
  49. dialog.SetAutoSize( true ) ;
  50. SelectField( 'txtName' ) ;
  51. }
  52. function Ok()
  53. {
  54. oEditor.FCKUndo.SaveUndoStep() ;
  55. oActiveEl = CreateNamedElement( oEditor, oActiveEl, 'TEXTAREA', {name: GetE('txtName').value} ) ;
  56. SetAttribute( oActiveEl, 'cols', GetE('txtCols').value ) ;
  57. SetAttribute( oActiveEl, 'rows', GetE('txtRows').value ) ;
  58. return true ;
  59. }
  60. </script>
  61. <style type="text/css">
  62. body, td, input, textarea, select, label { font-family: Arial, Verdana, Geneva, helvetica, sans-serif; font-size: 11px; }
  63. </style>
  64. </head>
  65. <body style="overflow: hidden">
  66. <table height="100%" width="100%">
  67. <tr>
  68. <td align="center">
  69. <table border="0" cellpadding="0" cellspacing="0" width="80%">
  70. <tr>
  71. <td>
  72. <span fckLang="DlgTextareaName">Name</span><br>
  73. <input type="text" id="txtName" style="WIDTH: 100%">
  74. <span fckLang="DlgTextareaCols">Collumns</span><br>
  75. <input id="txtCols" type="text" size="5">
  76. <br>
  77. <span fckLang="DlgTextareaRows">Rows</span><br>
  78. <input id="txtRows" type="text" size="5">
  79. </td>
  80. </tr>
  81. </table>
  82. </td>
  83. </tr>
  84. </table>
  85. </body>
  86. </html>