~bestpractical/rt/master

« back to all changes in this revision

Viewing changes to share/html/NoAuth/RichText/FCKeditor/editor/dialog/fck_textarea.html

  • Committer: sunnavy
  • Date: 2008-05-14 13:22:46 UTC
  • Revision ID: git-v1:0f0c8baef62a06a13d6fb54683d6c7d75d5f1283
source layout change! html now lives in share/html

git-svn-id: svn+ssh://svn.bestpractical.com/svn/bps-public/rt/branches/3.8-TESTING@12308 e417ac7c-1bcc-0310-8ffa-8f5827389a85

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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-2007 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
 
 
32
var oEditor = window.parent.InnerDialogLoaded() ;
 
33
 
 
34
// Gets the document DOM
 
35
var oDOM = oEditor.FCK.EditorDocument ;
 
36
 
 
37
var oActiveEl = oEditor.FCKSelection.GetSelectedElement() ;
 
38
 
 
39
window.onload = function()
 
40
{
 
41
        // First of all, translate the dialog box texts
 
42
        oEditor.FCKLanguageManager.TranslatePage(document) ;
 
43
 
 
44
        if ( oActiveEl && oActiveEl.tagName == 'TEXTAREA' )
 
45
        {
 
46
                GetE('txtName').value           = oActiveEl.name ;
 
47
                GetE('txtCols').value           = GetAttribute( oActiveEl, 'cols' ) ;
 
48
                GetE('txtRows').value           = GetAttribute( oActiveEl, 'rows' ) ;
 
49
        }
 
50
        else
 
51
                oActiveEl = null ;
 
52
 
 
53
        window.parent.SetOkButton( true ) ;
 
54
        window.parent.SetAutoSize( true ) ;
 
55
}
 
56
 
 
57
function Ok()
 
58
{
 
59
        oEditor.FCKUndo.SaveUndoStep() ;
 
60
        
 
61
        if ( !oActiveEl )
 
62
        {
 
63
                oActiveEl = oEditor.FCK.InsertElement( 'textarea' ) ;
 
64
        }
 
65
 
 
66
        oActiveEl.name = GetE('txtName').value ;
 
67
        SetAttribute( oActiveEl, 'cols', GetE('txtCols').value ) ;
 
68
        SetAttribute( oActiveEl, 'rows', GetE('txtRows').value ) ;
 
69
 
 
70
        return true ;
 
71
}
 
72
 
 
73
                </script>
 
74
        </head>
 
75
        <body style="overflow: hidden">
 
76
                <table height="100%" width="100%">
 
77
                        <tr>
 
78
                                <td align="center">
 
79
                                        <table border="0" cellpadding="0" cellspacing="0" width="80%">
 
80
                                                <tr>
 
81
                                                        <td>
 
82
                                                                <span fckLang="DlgTextareaName">Name</span><br>
 
83
                                                                <input type="text" id="txtName" style="WIDTH: 100%">
 
84
                                                                <span fckLang="DlgTextareaCols">Collumns</span><br>
 
85
                                                                <input id="txtCols" type="text" size="5">
 
86
                                                                <br>
 
87
                                                                <span fckLang="DlgTextareaRows">Rows</span><br>
 
88
                                                                <input id="txtRows" type="text" size="5">
 
89
                                                        </td>
 
90
                                                </tr>
 
91
                                        </table>
 
92
                                </td>
 
93
                        </tr>
 
94
                </table>
 
95
        </body>
 
96
</html>