X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fpastetext%2Fplugin.js;h=a523549ad514fde822c20af637fe8071ab166133;hp=d7b1b3480882f3ce0f07bbd87517d1bc8fb1e8ac;hb=48b1db88210b4160dce439c6e3e32e14af8c106b;hpb=9afde8772159bd3436f1f5b7862960307710ae5a diff --git a/_source/plugins/pastetext/plugin.js b/_source/plugins/pastetext/plugin.js index d7b1b34..a523549 100644 --- a/_source/plugins/pastetext/plugin.js +++ b/_source/plugins/pastetext/plugin.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 */ @@ -65,6 +65,11 @@ For licensing, see LICENSE.html or http://ckeditor.com/license } }, null, null, 0 ); } + + editor.on( 'pasteState', function( evt ) + { + editor.getCommand( 'pastetext' ).setState( evt.data ); + }); }, requires : [ 'clipboard' ]