gpt4 book ai didi

javascript - 无法在表情符号后输入文字(跨度)

转载 作者:行者123 更新时间:2023-11-27 23:21:22 27 4
gpt4 key购买 nike

我正在开发聊天应用程序 (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>

最佳答案

看看它是如何工作的只是在表情符号之后添加 

<!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>

关于javascript - 无法在表情符号后输入文字(跨度),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40889116/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com