提问者:小点点

CKEditor正在剥离<figure>和<figcaption>标记


我知道我可以在CKEditor配置文件中添加异常来允许某些HTML标记,但我希望有一种更简单的方法来实现这一点

基本上,我只需要一个简单的方法,以文字标题图像。有没有办法用CKEditor不会删除的东西复制

的功能?


共1个答案

匿名用户

好的,实际上您可以只使用

和一些内联样式来复制功能。下面的格式为左侧,但您可以将float更改为right并将margin-right更改为margin-left以达到相同的效果。

<div style="float:left;margin-right:15px;margin-bottom:5px;font-style:italic">
    <img alt="" src="http://placehold.it/300x300" style="height:300px; width:300px" />
    <div style="max-width:300px">This is a caption</div>
</div>

null

<div style="float:left;margin-right:15px;margin-bottom:5px;font-style:italic"><img alt="" src="http://placehold.it/300x300" style="height:300px; width:300px" /><div style="max-width:300px">This is a caption</div></div>
<p>Collaboratively administrate empowered markets via plug-and-play networks. Dynamically procrastinate B2C users after installed base benefits. Dramatically visualize customer directed convergence without revolutionary ROI.</p><p>Efficiently unleash cross-media information without cross-media value. Quickly maximize timely deliverables for real-time schemas. Dramatically maintain clicks-and-mortar solutions without functional solutions.</p><p>Completely synergize resource taxing relationships via premier niche markets. Professionally cultivate one-to-one customer service with robust ideas. Dynamically innovate resource-leveling customer service for state of the art customer service.</p><p>Objectively innovate empowered manufactured products whereas parallel platforms. Holisticly predominate extensible testing procedures for reliable supply chains. Dramatically engage top-line web services vis-a-vis cutting-edge deliverables.</p><p>Proactively envisioned multimedia based expertise and cross-media growth strategies. Seamlessly visualize quality intellectual capital without superior collaboration and idea-sharing. Holistically pontificate installed base portals after maintainable products.</p><p>Phosfluorescently engage worldwide methodologies with web-enabled technology. Interactively coordinate proactive e-commerce via process-centric "outside the box" thinking. Completely pursue scalable customer service through sustainable potentialities.</p><p>Collaboratively administrate turnkey channels whereas virtual e-tailers. Objectively seize scalable metrics whereas proactive e-services. Seamlessly empower fully researched growth strategies and interoperable internal or "organic" sources.</p><p>Credibly innovate granular internal or "organic" sources whereas high standards in web-readiness. Energistically scale future-proof core competencies vis-a-vis impactful experiences. Dramatically synthesize integrated schemas with optimal networks.</p>

相关问题