表情符号后不能输入文字(span)

时间:2016-11-30 13:03:28

标签: javascript html cordova

我正在开发聊天应用程序(cordova),我在这个代码中遇到问题,当我打算在表情符号后输入文字我无法输入

https://output.jsbin.com/radaref



<!DOCTYPE html>
<html>
<head>
<link href="https://cdn.jsdelivr.net/embed.js/4.1.3/embed.min.css"  rel="stylesheet" />
</head>
<body>
<p contenteditable="true">This is a paragraph. It is editable. Try to  change this text.<span class="emoticon emoticon-blush" title=":blush:">  </span></p>
<script src="https://cdn.jsdelivr.net/embed.js/4.1.3/embed.min.js">     </script>
</body>
</html>
&#13;
&#13;
&#13;

1 个答案:

答案 0 :(得分:2)

了解其作品如何在表情符号

之后添加&nbsp;

<!DOCTYPE html>
<html>
<head>
<link href="https://cdn.jsdelivr.net/embed.js/4.1.3/embed.min.css"  rel="stylesheet" />
</head>
<body>
<p contenteditable="true">This is a paragraph. It is editable. Try to  change this text.<span class="emoticon emoticon-blush" title=":blush:">  </span>&nbsp; </p>
<script src="https://cdn.jsdelivr.net/embed.js/4.1.3/embed.min.js">     </script>
</body>
</html>