【发布时间】:2018-11-21 06:40:40
【问题描述】:
我在我的应用程序中使用emojionearea。由于这个插件隐藏了原始的textarea 并使用div 来显示和加载表情符号,因此在执行onkeyup 和onkeypress 等事件时会出现问题。这是我的代码:
<textarea id="Message" class="form-control" cols="80" rows="7" onchange="SMSCounter(this, event, in_array([], "Source"))" onblur="RefineCounter(this, in_array([], "Source"))" onkeypress="SetChar(event)" onkeyup="SMSCounter(this, event, in_array([], "Source"))" maxlength="765" style="width: 350px; height: 100px; float: right; display: none;" name="data[Message]" data-rel="tmplButton-solh0ecqbs"></textarea>
【问题讨论】:
标签: javascript html emojione