X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fresize%2Fplugin.js;h=780f319388b09d898b7c323c02c80d5bf2d7d58c;hb=e7789c1ad838194d45eeee6ac2eb6e55f5cf35a1;hp=32faf6fdcc77bd82305bd096000b5500e4ded027;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6;p=ckeditor.git diff --git a/_source/plugins/resize/plugin.js b/_source/plugins/resize/plugin.js index 32faf6f..780f319 100644 --- a/_source/plugins/resize/plugin.js +++ b/_source/plugins/resize/plugin.js @@ -53,7 +53,9 @@ CKEDITOR.plugins.add( 'resize', editor.document.on( 'mousemove', dragHandler ); editor.document.on( 'mouseup', dragEndHandler ); } - } ); + }); + + editor.on( 'destroy', function() { CKEDITOR.tools.removeFunction( mouseDownFn ); } ); editor.on( 'themeSpace', function( event ) {