Sha256: ff4ac362c04eba1d7a0196841177e9341972d17e1552fdb45f7f1f33dd8a729e
Contents?: true
Size: 1.85 KB
Versions: 5
Compression:
Stored size: 1.85 KB
Contents
/* 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 : '<div style="white-space:normal;width:340px;">' + editor.lang.clipboard.pasteMsg + '</div>' }, { type : 'html', id : 'content', style : 'width:340px;height:170px', html : '<textarea style="' + 'width:346px;' + 'height:170px;' + 'resize: none;' + 'border:1px solid black;' + 'background-color:white">' + '</textarea>', onLoad : function() { var label = this.getDialog().getContentElement( 'general', 'pasteMsg' ).getElement(), input = this.getElement(); input.setAttribute( 'aria-labelledby', label.$.id ); }, focus : function() { this.getElement().focus(); } } ] } ] }; }); })();
Version data entries
5 entries across 5 versions & 2 rubygems