Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
600
Event binding in IgTextEditor control withing Angular2,Typescript App
posted

Hello Team,

I would like to know, how can we bind an event on igTextEditor? 

I would like to do something like this, 

Working with simple HTML Textbox as below,

<input id="input_{{controlID}}" [(ngModel)]="viewValue" type="text" (keydown)="allowOnlyDelete($event)" (keyup)="setValue(viewValue)" [disabled]="disabled" />

HowTO with IgniteUI Texteditor,

<ig-text-editor widgetId="tes" name="tes" [(ngModel)]="viewValue" (keydown)="allowOnlyDelete($event)" (keyup)="setValue(viewValue)" [disabled]="disabled"></ig-text-editor>

One sample code would be great to understand the implementation. Thank you for your support in advance. 

Looking forward to your help.

Regards,

Jeet