/* Copyright (c) 2003-2010, 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() { // Reset the textarea value. this.getContentElement( 'general', 'content' ).getInputElement().setValue( '' ); }, onOk : function() { // Get the textarea value. var text = this.getContentElement( 'general', 'content' ).getInputElement().getValue(), editor = this.getParentEditor(); setTimeout( function() { editor.fire( 'paste', { 'text' : text } ); }, 0 ); }, contents : [ { label : editor.lang.common.generalTab, id : 'general', elements : [ { type : 'html', id : 'pasteMsg', html : '