[1257] | 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_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 | |
---|
| 28 | var oEditor = window.parent.InnerDialogLoaded() ; |
---|
| 29 | |
---|
| 30 | // Gets the document DOM |
---|
| 31 | var oDOM = oEditor.FCK.EditorDocument ; |
---|
| 32 | |
---|
| 33 | var oActiveEl = oEditor.FCKSelection.GetSelectedElement() ; |
---|
| 34 | |
---|
| 35 | window.onload = function() |
---|
| 36 | { |
---|
| 37 | // First of all, translate the dialog box texts |
---|
| 38 | oEditor.FCKLanguageManager.TranslatePage(document) ; |
---|
| 39 | |
---|
| 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 | |
---|
| 49 | window.parent.SetOkButton( true ) ; |
---|
| 50 | } |
---|
| 51 | |
---|
| 52 | function Ok() |
---|
| 53 | { |
---|
| 54 | if ( !oActiveEl ) |
---|
| 55 | { |
---|
| 56 | oActiveEl = oEditor.FCK.EditorDocument.createElement( 'TEXTAREA' ) ; |
---|
| 57 | oActiveEl = oEditor.FCK.InsertElementAndGetIt( oActiveEl ) ; |
---|
| 58 | } |
---|
| 59 | |
---|
| 60 | oActiveEl.name = GetE('txtName').value ; |
---|
| 61 | SetAttribute( oActiveEl, 'cols', GetE('txtCols').value ) ; |
---|
| 62 | SetAttribute( oActiveEl, 'rows', GetE('txtRows').value ) ; |
---|
| 63 | |
---|
| 64 | return true ; |
---|
| 65 | } |
---|
| 66 | |
---|
| 67 | </script> |
---|
| 68 | </head> |
---|
| 69 | <body style='OVERFLOW: hidden' scroll='no'> |
---|
| 70 | <table height="100%" width="100%"> |
---|
| 71 | <tr> |
---|
| 72 | <td align="center"> |
---|
| 73 | <table border="0" cellpadding="0" cellspacing="0" width="80%"> |
---|
| 74 | <tr> |
---|
| 75 | <td> |
---|
| 76 | <span fckLang="DlgTextareaName">Name</span><br> |
---|
| 77 | <input type="text" id="txtName" style="WIDTH: 100%"> |
---|
| 78 | <span fckLang="DlgTextareaCols">Collumns</span><br> |
---|
| 79 | <input id="txtCols" type="text" size="5"> |
---|
| 80 | <br> |
---|
| 81 | <span fckLang="DlgTextareaRows">Rows</span><br> |
---|
| 82 | <input id="txtRows" type="text" size="5"> |
---|
| 83 | </td> |
---|
| 84 | </tr> |
---|
| 85 | </table> |
---|
| 86 | </td> |
---|
| 87 | </tr> |
---|
| 88 | </table> |
---|
| 89 | </body> |
---|
| 90 | </html> |
---|