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
Hello Jeet,
Here's where you can find info about handling events - https://github.com/igniteui/igniteui-angular2#handling-events
And here's the IgniteUI editor sample for Angular 2 - http://igniteui.github.io/igniteui-angular2/samples/igEditors/igEditors.html
And this is an example template for initializing igTextEditor:
<ig-text-editor widgetId="editor1" (keyup)="keyUpHandler($event)" [(ngModel)]="editors.text" [options]="{width:'100%'}"></ig-text-editor>
Please review the links and if you have more questions on this, please let us know.