File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 273
273
274
274
addListener ( ctx , editor , 'blur' , function ( ) {
275
275
checkPlaceholder ( ctx ) ;
276
+ ctx . checkContentChange ( ) ;
276
277
} ) ;
277
278
278
279
// listen for paste and clear style
507
508
range = this . getRange ( ) ;
508
509
range . collapse ( false ) ; // set to end
509
510
}
510
- selection . removeAllRanges ( ) ;
511
- selection . addRange ( range ) ;
511
+ try {
512
+ selection . removeAllRanges ( ) ;
513
+ selection . addRange ( range ) ;
514
+ } catch ( e ) { /* IE throws error sometimes*/ }
512
515
return this ;
513
516
} ;
514
517
696
699
697
700
if ( ! isAJoke ) {
698
701
removeAllListeners ( this ) ;
699
- selection . removeAllRanges ( ) ;
700
- this . _menu . parentNode . removeChild ( this . _menu ) ;
702
+ try {
703
+ selection . removeAllRanges ( ) ;
704
+ this . _menu . parentNode . removeChild ( this . _menu ) ;
705
+ } catch ( e ) { /* IE throws error sometimes*/ }
701
706
} else {
702
707
initToolbar ( this ) ;
703
708
initEvents ( this ) ;
You can’t perform that action at this time.
0 commit comments