X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fpastetext%2Fdialogs%2Fpastetext.js;h=82e42178dac5ea9624d9a4f6800620fb64545eec;hb=055b6b0792ce7dc53d47af606b367c04b927c2ab;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..82e4217 100644 --- a/_source/plugins/pastetext/dialogs/pastetext.js +++ b/_source/plugins/pastetext/dialogs/pastetext.js @@ -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();