CKEditor 在空 div 中添加 <p> 标签
CKEditor add <p> Tag in empty divs
当我将它添加到我的 CKEditor 中时,它会将它写入数据库中:
<div data-oembed-url="https://www.youtube.com/watch?v=5xAaNCUj0sI">
<div style="left: 0; width: 100%; height: 0; position: relative; padding-bottom: 56.25%;"><iframe allow="encrypted-media; accelerometer; gyroscope; picture-in-picture" allowfullscreen="" scrolling="no" src="https://www.youtube.com/embed/5xAaNCUj0sI?rel=0" style="border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute;" tabindex="-1"></iframe></div>
</div>
但是当我重新加载后端时,它会像这样打开它:
<p> </p>
<div data-oembed-url="https://www.youtube.com/watch?v=5xAaNCUj0sI">
<div style="left: 0; width: 100%; height: 0; position: relative; padding-bottom: 56.25%;">
<p> </p>
<iframe allow="encrypted-media; accelerometer; gyroscope; picture-in-picture" allowfullscreen="" scrolling="no" src="https://www.youtube.com/embed/5xAaNCUj0sI?rel=0" style="border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute;" tabindex="-1"></iframe>
<p> </p>
</div>
<p> </p>
</div>
<p> </p>
我怎样才能阻止 CKEditor 添加这些
到空的 div...
希望有人能帮帮我,谢谢!
我发现添加 DIV
至:
RTE.default.proc.blockElementList = PRE,UL,OL,H1,H2,H3,H4,H5,H6,ADDRESS,DL,DD,HEADER,SECTION,FOOTER,NAV,ARTICLE,ASIDE,IFRAME,DIV
在 page.ts 中修复了它。
当我将它添加到我的 CKEditor 中时,它会将它写入数据库中:
<div data-oembed-url="https://www.youtube.com/watch?v=5xAaNCUj0sI">
<div style="left: 0; width: 100%; height: 0; position: relative; padding-bottom: 56.25%;"><iframe allow="encrypted-media; accelerometer; gyroscope; picture-in-picture" allowfullscreen="" scrolling="no" src="https://www.youtube.com/embed/5xAaNCUj0sI?rel=0" style="border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute;" tabindex="-1"></iframe></div>
</div>
但是当我重新加载后端时,它会像这样打开它:
<p> </p>
<div data-oembed-url="https://www.youtube.com/watch?v=5xAaNCUj0sI">
<div style="left: 0; width: 100%; height: 0; position: relative; padding-bottom: 56.25%;">
<p> </p>
<iframe allow="encrypted-media; accelerometer; gyroscope; picture-in-picture" allowfullscreen="" scrolling="no" src="https://www.youtube.com/embed/5xAaNCUj0sI?rel=0" style="border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute;" tabindex="-1"></iframe>
<p> </p>
</div>
<p> </p>
</div>
<p> </p>
我怎样才能阻止 CKEditor 添加这些
到空的 div...
希望有人能帮帮我,谢谢!
我发现添加 DIV
至:
RTE.default.proc.blockElementList = PRE,UL,OL,H1,H2,H3,H4,H5,H6,ADDRESS,DL,DD,HEADER,SECTION,FOOTER,NAV,ARTICLE,ASIDE,IFRAME,DIV
在 page.ts 中修复了它。