I want to create a chat app with angular 2 and I need to show Emojis in the input field, but html doesn't support image in input field.
also I tried this way, but not worked:
<div contenteditable="true"
[innerHtml]="msgText"
class="form-control"
(keyup)="enable_disable_sendBtn()"
(keypress)="handle_enter_key($event)"
#messageBox
(input)="msgText = $event.target.innerText">
</div>
I have tried this but not I've got errors from tslint
and says: use @HostListener Or @HostBinding instead of host
.
Can anyone help me to show emjis in the text input?