-3
我正在致力於即時通訊工具,並希望啓用「聊天者」以將emojis添加到他們的聊天中。這是我迄今爲止所擁有的。如何將表情圖案放入聊天文字區域?
<template name="chat_page">
<h2>Type in the box below to send a message!</h2>
<div class="row">
<div class="col-md-12">
<div class="well well-lg">
{{#each messages}}
{{> chat_message}}
{{/each}}
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<form class="js-send-chat">
<div class="form-group">
<input class="form-control" id="input-emoticon" type="text" name="chat" placeholder="type a message here..." />
</div>
<button class="btn btn-primary btn-block">Send</button>
</form>
</div>
</div>
</template>
可以使用Unicode表情符號,像任何「特殊字符」 – dandavis
感謝回答丹。試圖實施EmojiOne。仍在掙扎。任何有助於這一努力的鏈接將不勝感激。 –