source: branches/2.2/filemanager/tp/ckeditor/_source/plugins/pastetext/dialogs/pastetext.js @ 3019

Revision 3019, 1.5 KB checked in by amuller, 14 years ago (diff)

Ticket #1135 - Corrigindo CSS e adicionando filemanager

Line 
1/*
2Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.html or http://ckeditor.com/license
4*/
5
6(function()
7{
8        CKEDITOR.dialog.add( 'pastetext', function( editor )
9                {
10                        return {
11                                title : editor.lang.pasteText.title,
12
13                                minWidth : CKEDITOR.env.ie && CKEDITOR.env.quirks ? 368 : 350,
14                                minHeight : 240,
15
16                                onShow : function()
17                                {
18                                        // Reset the textarea value.
19                                        this.getContentElement( 'general', 'content' ).getInputElement().setValue( '' );
20                                },
21
22                                onOk : function()
23                                {
24                                        // Get the textarea value.
25                                        var text = this.getContentElement( 'general', 'content' ).getInputElement().getValue();
26
27                                        // Inserts the text.
28                                        this.getParentEditor().insertText( text );
29                                },
30
31                                contents :
32                                [
33                                        {
34                                                label : editor.lang.common.generalTab,
35                                                id : 'general',
36                                                elements :
37                                                [
38                                                        {
39                                                                type : 'html',
40                                                                id : 'pasteMsg',
41                                                                html : '<div style="white-space:normal;width:340px;">' + editor.lang.clipboard.pasteMsg + '</div>'
42                                                        },
43                                                        {
44                                                                type : 'html',
45                                                                id : 'content',
46                                                                style : 'width:340px;height:170px',
47                                                                html :
48                                                                        '<textarea style="' +
49                                                                                'width:346px;' +
50                                                                                'height:170px;' +
51                                                                                'resize: none;' +
52                                                                                'border:1px solid black;' +
53                                                                                'background-color:white">' +
54                                                                        '</textarea>',
55                                                                focus : function()
56                                                                {
57                                                                        this.getElement().focus();
58                                                                }
59                                                        }
60                                                ]
61                                        }
62                                ]
63                        };
64                });
65})();
Note: See TracBrowser for help on using the repository browser.