X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fpastetext%2Fdialogs%2Fpastetext.js;h=42a021fe46d4172d81d3bfa31e987caae3229c66;hb=48b1db88210b4160dce439c6e3e32e14af8c106b;hp=0c7df34025af0d971ff14d02e5ac46080325b314;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6;p=ckeditor.git diff --git a/_source/plugins/pastetext/dialogs/pastetext.js b/_source/plugins/pastetext/dialogs/pastetext.js index 0c7df34..42a021f 100644 --- a/_source/plugins/pastetext/dialogs/pastetext.js +++ b/_source/plugins/pastetext/dialogs/pastetext.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -44,17 +44,19 @@ For licensing, see LICENSE.html or http://ckeditor.com/license html : '
' + editor.lang.clipboard.pasteMsg + '
' }, { - type : 'html', + type : 'textarea', id : 'content', - style : 'width:340px;height:170px', - html : - '', + 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();