fix issue wanming/angular-editor#4