X-Git-Url: https://scm.cri.minesparis.psl.eu/git/ckeditor.git/blobdiff_plain/871bad8291b6dbc29d489d95d185458caab25158..14d450d78a2d67ec1decd64c928151851961dd36:/_source/plugins/pastetext/dialogs/pastetext.js diff --git a/_source/plugins/pastetext/dialogs/pastetext.js b/_source/plugins/pastetext/dialogs/pastetext.js deleted file mode 100644 index 56143df..0000000 --- a/_source/plugins/pastetext/dialogs/pastetext.js +++ /dev/null @@ -1,67 +0,0 @@ -/* -Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.html or http://ckeditor.com/license -*/ - -(function() -{ - CKEDITOR.dialog.add( 'pastetext', function( editor ) - { - return { - title : editor.lang.pasteText.title, - - minWidth : CKEDITOR.env.ie && CKEDITOR.env.quirks ? 368 : 350, - minHeight : 240, - - onShow : function(){ this.setupContent(); }, - onOk : function(){ this.commitContent(); }, - - contents : - [ - { - label : editor.lang.common.generalTab, - id : 'general', - elements : - [ - { - type : 'html', - id : 'pasteMsg', - html : '
' + editor.lang.clipboard.pasteMsg + '
' - }, - { - type : 'textarea', - id : 'content', - className : 'cke_pastetext', - - onLoad : function() - { - var label = this.getDialog().getContentElement( 'general', 'pasteMsg' ).getElement(), - input = this.getElement().getElementsByTag( 'textarea' ).getItem( 0 ); - - input.setAttribute( 'aria-labelledby', label.$.id ); - input.setStyle( 'direction', editor.config.contentsLangDirection ); - }, - - focus : function() - { - this.getElement().focus(); - }, - setup : function() - { - this.setValue( '' ); - }, - commit : function() - { - var value = this.getValue(); - setTimeout( function() - { - editor.fire( 'paste', { 'text' : value } ); - }, 0 ); - } - } - ] - } - ] - }; - }); -})();