+++ /dev/null
-/*\r
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.\r
-For licensing, see LICENSE.html or http://ckeditor.com/license\r
-*/\r
-\r
-(function()\r
-{\r
- CKEDITOR.dialog.add( 'pastetext', function( editor )\r
- {\r
- return {\r
- title : editor.lang.pasteText.title,\r
-\r
- minWidth : CKEDITOR.env.ie && CKEDITOR.env.quirks ? 368 : 350,\r
- minHeight : 240,\r
-\r
- onShow : function(){ this.setupContent(); },\r
- onOk : function(){ this.commitContent(); },\r
-\r
- contents :\r
- [\r
- {\r
- label : editor.lang.common.generalTab,\r
- id : 'general',\r
- elements :\r
- [\r
- {\r
- type : 'html',\r
- id : 'pasteMsg',\r
- html : '<div style="white-space:normal;width:340px;">' + editor.lang.clipboard.pasteMsg + '</div>'\r
- },\r
- {\r
- type : 'textarea',\r
- id : 'content',\r
- className : 'cke_pastetext',\r
-\r
- onLoad : function()\r
- {\r
- var label = this.getDialog().getContentElement( 'general', 'pasteMsg' ).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
- {\r
- this.getElement().focus();\r
- },\r
- setup : function()\r
- {\r
- this.setValue( '' );\r
- },\r
- commit : function()\r
- {\r
- var value = this.getValue();\r
- setTimeout( function()\r
- {\r
- editor.fire( 'paste', { 'text' : value } );\r
- }, 0 );\r
- }\r
- }\r
- ]\r
- }\r
- ]\r
- };\r
- });\r
-})();\r