-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTML 块复制/剪切后粘贴,块内容转义与解析错误 #4245
Comments
This comment was marked as outdated.
This comment was marked as outdated.
以前确认问题,下个版本修复,谢谢。 |
✔ |
@88250 这个 bug 在 如下 HTML 块 剪切/复制 后再粘贴会粘贴为两个 HTML 块, 内容分别是 <style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #091921;
}
.clock {
width: 350px;
height: 350px;
display: flex;
justify-content: center;
align-items: center;
background-size: cover;
border: 4px solid #091921;
border-radius: 50%;
box-shadow: 0 -15px 15px rgba(255, 255, 255, 0.05),
inset 0 -15px 15px rgba(255, 255, 255, 0.05),
0 15px 15px rgba(0, 0, 0, 0.3),
inset 0 -15px 15px rgba(0, 0, 0, 0.3);
}
.clock:before {
content: '';
position: absolute;
width: 15px;
height: 15px;
background-color: #fff;
border-radius: 50%;
z-index: 100;
}
.clock .hour,
.clock .min,
.clock .sec {
position: absolute;
}
.clock .hour,
.hr {
width: 160px;
height: 160px;
}
.clock .min,
.mn {
width: 190px;
height: 190px;
}
.clock .sec,
.sc {
width: 230px;
height: 230px;
}
.hr,
.mn,
.sc {
display: flex;
justify-content: center;
position: absolute;
border-radius: 50%;
}
.hr:before {
content: '';
position: absolute;
width: 8px;
height: 80px;
background-color: #ff105e;
z-index: 10;
border-radius: 6px 6px 0 0;
}
.mn:before {
content: '';
position: absolute;
width: 4px;
height: 90px;
background-color: #fff;
z-index: 11;
border-radius: 6px 6px 0 0;
}
.sc:before {
content: '';
position: absolute;
width: 2px;
height: 150px;
background-color: #fff;
z-index: 12;
border-radius: 6px 6px 0 0;
}
</style>
<div class="clock">
<div class="hour">
<div class="hr" id="hr"></div>
</div>
<div class="min">
<div class="mn" id="mn"></div>
</div>
<div class="sec">
<div class="sc" id="sc"></div>
</div>
</div> |
@Zuoqiu-Yingyi 手工创建 HTML 块后在编辑框里输入,直接粘贴的话是按照 Markdown 标准解析为多个块。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
描述问题 Describe the problem
示例 1
HTML 块内容:
复制后剪贴板内内容:
粘贴后样式:
其中 HTML 块内容:
错误产生原因推测:
复制后换行符为转义, 粘贴时解析为一个错误的 HTML 块与一个段落块
示例 2
HTML 块内容:
复制后剪贴板内内容:
粘贴后 HTML 块内容:
错误产生原因推测:
粘贴后解析时仅将
data-content
属性中的转义字符恢复, 未移除protyle-html
标签,div
标签与span
标签期待的结果 Expected result
复制/剪切后再粘贴的 HTML 块内容前后保持一致
版本环境 Version environment
The text was updated successfully, but these errors were encountered: