fck_textarea.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  2. <!--
  3. * FCKeditor - The text editor for internet
  4. * Copyright (C) 2003-2005 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_textarea.html
  15. * Text Area dialog window.
  16. *
  17. * File Authors:
  18. * Frederico Caldeira Knabben (fredck@fckeditor.net)
  19. -->
  20. <html>
  21. <head>
  22. <title>Text Area Properties</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. var oEditor = window.parent.InnerDialogLoaded() ;
  28. // Gets the document DOM
  29. var oDOM = oEditor.FCK.EditorDocument ;
  30. var oActiveEl = oEditor.FCKSelection.GetSelectedElement() ;
  31. window.onload = function()
  32. {
  33. // First of all, translate the dialog box texts
  34. oEditor.FCKLanguageManager.TranslatePage(document) ;
  35. if ( oActiveEl && oActiveEl.tagName == 'TEXTAREA' )
  36. {
  37. GetE('txtName').value = oActiveEl.name ;
  38. GetE('txtCols').value = GetAttribute( oActiveEl, 'cols' ) ;
  39. GetE('txtRows').value = GetAttribute( oActiveEl, 'rows' ) ;
  40. }
  41. else
  42. oActiveEl = null ;
  43. window.parent.SetOkButton( true ) ;
  44. }
  45. function Ok()
  46. {
  47. if ( !oActiveEl )
  48. {
  49. oActiveEl = oEditor.FCK.EditorDocument.createElement( 'TEXTAREA' ) ;
  50. oActiveEl = oEditor.FCK.InsertElementAndGetIt( oActiveEl ) ;
  51. }
  52. oActiveEl.name = GetE('txtName').value ;
  53. SetAttribute( oActiveEl, 'cols', GetE('txtCols').value ) ;
  54. SetAttribute( oActiveEl, 'rows', GetE('txtRows').value ) ;
  55. return true ;
  56. }
  57. </script>
  58. </head>
  59. <body style='OVERFLOW: hidden' scroll='no'>
  60. <table height="100%" width="100%">
  61. <tr>
  62. <td align="center">
  63. <table border="0" cellpadding="0" cellspacing="0" width="80%">
  64. <tr>
  65. <td>
  66. <span fckLang="DlgTextareaName">Name</span><br>
  67. <input type="text" id="txtName" style="WIDTH: 100%">
  68. <span fckLang="DlgTextareaCols">Collumns</span><br>
  69. <input id="txtCols" type="text" size="5">
  70. <br>
  71. <span fckLang="DlgTextareaRows">Rows</span><br>
  72. <input id="txtRows" type="text" size="5">
  73. </td>
  74. </tr>
  75. </table>
  76. </td>
  77. </tr>
  78. </table>
  79. </body>
  80. </html>