2016-11-30 14 views
2

我在其中,我在這段代碼中面臨的問題聊天應用程序(科爾多瓦)工作時,我要去的表情符號後鍵入文本我不能夠輸入無法鍵入後的表情符號(跨度)文本

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>

+0

試試您的交易跨度之後,結束p標籤前加空格 - 也許永遠使用  –

回答

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>