Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
ckeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vanilla ckeditor-3.2
[ckeditor.git]
/
_source
/
plugins
/
pastetext
/
dialogs
/
pastetext.js
diff --git
a/_source/plugins/pastetext/dialogs/pastetext.js
b/_source/plugins/pastetext/dialogs/pastetext.js
index
a0dfe48
..
9ff4f74
100644
(file)
--- a/
_source/plugins/pastetext/dialogs/pastetext.js
+++ b/
_source/plugins/pastetext/dialogs/pastetext.js
@@
-1,5
+1,5
@@
/*
\r
/*
\r
-Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
\r
+Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
\r
For licensing, see LICENSE.html or http://ckeditor.com/license
\r
*/
\r
\r
For licensing, see LICENSE.html or http://ckeditor.com/license
\r
*/
\r
\r
@@
-22,10
+22,13
@@
For licensing, see LICENSE.html or http://ckeditor.com/license
onOk : function()
\r
{
\r
// Get the textarea value.
\r
onOk : function()
\r
{
\r
// Get the textarea value.
\r
- var text = this.getContentElement( 'general', 'content' ).getInputElement().getValue();
\r
+ var text = this.getContentElement( 'general', 'content' ).getInputElement().getValue(),
\r
+ editor = this.getParentEditor();
\r
\r
\r
- // Inserts the text.
\r
- this.getParentEditor().insertText( text );
\r
+ setTimeout( function()
\r
+ {
\r
+ editor.fire( 'paste', { 'text' : text } );
\r
+ }, 0 );
\r
},
\r
\r
contents :
\r
},
\r
\r
contents :
\r
@@
-52,6
+55,15
@@
For licensing, see LICENSE.html or http://ckeditor.com/license
'border:1px solid black;' +
\r
'background-color:white">' +
\r
'</textarea>',
\r
'border:1px solid black;' +
\r
'background-color:white">' +
\r
'</textarea>',
\r
+
\r
+ onLoad : function()
\r
+ {
\r
+ var label = this.getDialog().getContentElement( 'general', 'pasteMsg' ).getElement(),
\r
+ input = this.getElement();
\r
+
\r
+ input.setAttribute( 'aria-labelledby', label.$.id );
\r
+ },
\r
+
\r
focus : function()
\r
{
\r
this.getElement().focus();
\r
focus : function()
\r
{
\r
this.getElement().focus();
\r