fex-team / umeditor

ueditor的mini版本,特点是体积小巧和更快的加载速度

Home Page:http://ueditor.baidu.com/website/umeditor.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

cc2victoria opened this issue · comments

复制文字的时候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次,就会出现多了几行空白行的问题。