File tree 1 file changed +1
-2
lines changed
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -71,15 +71,14 @@ module.exports = React.createClass({
71
71
this . editor . getSession ( ) . setMode ( 'ace/mode/' + this . props . mode ) ;
72
72
this . editor . setTheme ( 'ace/theme/' + this . props . theme ) ;
73
73
this . editor . setFontSize ( this . props . fontSize ) ;
74
- this . editor . on ( 'change' , this . onChange ) ;
75
- this . editor . on ( 'paste' , this . onPaste ) ;
76
74
this . editor . setValue ( this . props . value , this . props . cursorStart ) ;
77
75
this . editor . renderer . setShowGutter ( this . props . showGutter ) ;
78
76
this . editor . setOption ( 'maxLines' , this . props . maxLines ) ;
79
77
this . editor . setOption ( 'readOnly' , this . props . readOnly ) ;
80
78
this . editor . setOption ( 'highlightActiveLine' , this . props . highlightActiveLine ) ;
81
79
this . editor . setShowPrintMargin ( this . props . setShowPrintMargin ) ;
82
80
this . editor . on ( 'change' , this . onChange ) ;
81
+ this . editor . on ( 'paste' , this . onPaste ) ;
83
82
84
83
if ( this . props . onLoad ) {
85
84
this . props . onLoad ( this . editor ) ;
You can’t perform that action at this time.
0 commit comments