Ckeditor 编辑添加<;p>;在空div中标记
当我将其添加到我的CKEditor中时,它会将其写入数据库:Ckeditor 编辑添加<;p>;在空div中标记,ckeditor,typo3,typo3-9.x,rte,Ckeditor,Typo3,Typo3 9.x,Rte,当我将其添加到我的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;
<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
致:
在page.ts中修复它
RTE.default.proc.blockElementList = PRE,UL,OL,H1,H2,H3,H4,H5,H6,ADDRESS,DL,DD,HEADER,SECTION,FOOTER,NAV,ARTICLE,ASIDE,IFRAME,DIV