JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.3.2
[ckeditor.git] / _source / plugins / pastetext / dialogs / pastetext.js
index c63025f..82e4217 100644 (file)
@@ -44,25 +44,17 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                                                html : '<div style="white-space:normal;width:340px;">' + editor.lang.clipboard.pasteMsg + '</div>'\r
                                                        },\r
                                                        {\r
-                                                               type : 'html',\r
+                                                               type : 'textarea',\r
                                                                id : 'content',\r
-                                                               style : 'width:340px;height:170px',\r
-                                                               html :\r
-                                                                       '<textarea style="' +\r
-                                                                               'width:346px;' +\r
-                                                                               'height:170px;' +\r
-                                                                               'resize: none;' +\r
-                                                                               'direction:' + editor.config.contentsLangDirection + ';' +\r
-                                                                               'border:1px solid black;' +\r
-                                                                               'background-color:white">' +\r
-                                                                       '</textarea>',\r
+                                                               className : 'cke_pastetext',\r
 \r
                                                                onLoad : function()\r
                                                                {\r
                                                                        var label = this.getDialog().getContentElement( 'general', 'pasteMsg' ).getElement(),\r
-                                                                               input = this.getElement();\r
+                                                                               input = this.getElement().getElementsByTag( 'textarea' ).getItem( 0 );\r
 \r
                                                                        input.setAttribute( 'aria-labelledby', label.$.id );\r
+                                                                       input.setStyle( 'direction', editor.config.contentsLangDirection );\r
                                                                },\r
 \r
                                                                focus : function()\r