1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
\r
3 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
\r
4 * Copyright (C) 2003-2010 Frederico Caldeira Knabben
\r
6 * == BEGIN LICENSE ==
\r
8 * Licensed under the terms of any of the following licenses at your
\r
11 * - GNU General Public License Version 2 or later (the "GPL")
\r
12 * http://www.gnu.org/licenses/gpl.html
\r
14 * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
\r
15 * http://www.gnu.org/licenses/lgpl.html
\r
17 * - Mozilla Public License Version 1.1 or later (the "MPL")
\r
18 * http://www.mozilla.org/MPL/MPL-1.1.html
\r
22 * Text Area dialog window.
\r
26 <title>Text Area Properties</title>
\r
27 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
\r
28 <meta content="noindex, nofollow" name="robots">
\r
29 <script src="common/fck_dialog_common.js" type="text/javascript"></script>
\r
30 <script type="text/javascript">
\r
32 var dialog = window.parent ;
\r
33 var oEditor = dialog.InnerDialogLoaded() ;
\r
35 // Gets the document DOM
\r
36 var oDOM = oEditor.FCK.EditorDocument ;
\r
38 var oActiveEl = dialog.Selection.GetSelectedElement() ;
\r
40 window.onload = function()
\r
42 // First of all, translate the dialog box texts
\r
43 oEditor.FCKLanguageManager.TranslatePage(document) ;
\r
45 if ( oActiveEl && oActiveEl.tagName == 'TEXTAREA' )
\r
47 GetE('txtName').value = oActiveEl.name ;
\r
48 GetE('txtCols').value = GetAttribute( oActiveEl, 'cols' ) ;
\r
49 GetE('txtRows').value = GetAttribute( oActiveEl, 'rows' ) ;
\r
54 dialog.SetOkButton( true ) ;
\r
55 dialog.SetAutoSize( true ) ;
\r
56 SelectField( 'txtName' ) ;
\r
61 oEditor.FCKUndo.SaveUndoStep() ;
\r
63 oActiveEl = CreateNamedElement( oEditor, oActiveEl, 'TEXTAREA', {name: GetE('txtName').value} ) ;
\r
65 SetAttribute( oActiveEl, 'cols', GetE('txtCols').value ) ;
\r
66 SetAttribute( oActiveEl, 'rows', GetE('txtRows').value ) ;
\r
73 <body style="overflow: hidden">
\r
74 <table height="100%" width="100%">
\r
77 <table border="0" cellpadding="0" cellspacing="0" width="80%">
\r
80 <span fckLang="DlgTextareaName">Name</span><br>
\r
81 <input type="text" id="txtName" style="WIDTH: 100%">
\r
82 <span fckLang="DlgTextareaCols">Collumns</span><br>
\r
83 <input id="txtCols" type="text" size="5">
\r
85 <span fckLang="DlgTextareaRows">Rows</span><br>
\r
86 <input id="txtRows" type="text" size="5">
\r