JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.5.1
[ckeditor.git] / _source / plugins / pastetext / plugin.js
index d7b1b34..a523549 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
 For licensing, see LICENSE.html or http://ckeditor.com/license\r
 */\r
 \r
@@ -65,6 +65,11 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                        }\r
                                }, null, null, 0 );\r
                        }\r
+\r
+                       editor.on( 'pasteState', function( evt )\r
+                               {\r
+                                       editor.getCommand( 'pastetext' ).setState( evt.data );\r
+                               });\r
                },\r
 \r
                requires : [ 'clipboard' ]\r