Skip to content
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

*复制文字的时候section标签会被包裹一层<p>标签,然后再次编辑的时候这一层p标签又会编译成两个空行 #656

Open
cc2victoria opened this issue Jun 8, 2020 · 0 comments

Comments

@cc2victoria
Copy link

cc2victoria commented Jun 8, 2020

复制文字的时候section标签会被包裹一层<p>标签,然后再次编辑的时候这一层p标签又会编译成两个空行

  1. 原文字源代码样式
<section style="text-align: justify;line-height: 1.75em;letter-spacing: 1.5px;margin-left: 16px;margin-right: 16px;">
    <span style="color: rgb(63, 63, 63);font-size: 15px;caret-color: red;font-family: Optima-Regular, PingFangTC-light;">他喜欢一位女神五年,有次和女神吃完饭送她回去的路上,女神接到一个男生的电话,男生说要来接她。</span>
</section>

image

  1. 原文字复制过后点击html(源代码)会成为
<p>
    <section>
        <span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important; color: rgb(63, 63, 63); font-size: 15px; caret-color: red; font-family: Optima-Regular, PingFangTC-light;">他喜欢一位女神五年,有次和女神吃完饭送她回去的路上,女神接到一个男生的电话,男生说要来接她。</span>
    </section>
</p>`
  1. 再次点击html(源代码)会变成
<p>
    <br/>
</p>
<section>
    <span style="margin: 0px; padding: 0px; max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important; color: rgb(63, 63, 63); font-size: 15px; caret-color: red; font-family: Optima-Regular, PingFangTC-light;">他喜欢一位女神五年,有次和女神吃完饭送她回去的路上,女神接到一个男生的电话,男生说要来接她。</span>
</section>
<p>
    <br/>
</p>

这样会导致在每次编辑的时候多了两行空行
image

复制文章链接参考参考文章
重现方式:复制上述参考文章部分内容。然后切换工具栏的 html(源代码)2次,就会出现多了几行空白行的问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant