【问题标题】:table has inside div press delete table my div element deleted in TinyMCE表里面有 div 按删除表我在 TinyMCE 中删除的 div 元素
【发布时间】:2020-10-30 13:41:57
【问题描述】:

我正在使用 TinyMCE

我在表格元素中创建了我的编辑器 div 元素(选择器)。然后我点击删除表,div元素被删除。

<table>
<tr>
  <td>  <div class="tinymce-body">
<p>Here are some of our customer&rsquo;s most common use cases for TinyMCE:</p>
<ul>
<li>Content Management systems (<em>e.g. WordPress, Umbraco</em>)</li>
<li>Learning Management Systems (<em>e.g. Blackboard</em>)</li>
<li>Customer Relationship Management and marketing automation (<em>e.g. Marketo</em>)</li>
<li>Email marketing (<em>e.g. Constant Contact</em>)</li>
<li>Content creation in SaaS systems (<em>e.g. Eventbrite, Evernote, GoFundMe, Zendesk</em>)</li>
</ul>
<p>And those use cases are just the start. TinyMCE is incredibly flexible, and with hundreds of APIs there&rsquo;s likely a solution for your editor project. If you haven&rsquo;t experienced Tiny Cloud, get started today. You&rsquo;ll even get a free trial of our premium plugins &ndash; no credit card required!</p>  </div>      </td>
</tr>
</table>

<script type="text/javascript">
tinymce.init({
selector: ".tinymce-body",
inline: true,
plugins: 'table',
toolbar: 'table'});
</script>

代码:https://fiddle.tiny.cloud/zhfaab/3

See Image

如何停止。只允许删除“div 元素内”创建的表格。

谢谢。

【问题讨论】:

    标签: tinymce tinymce-5


    【解决方案1】:

    仅供阅读,it's a bug

    【讨论】:

      猜你喜欢
      • 2012-04-09
      • 2013-03-05
      • 1970-01-01
      • 1970-01-01
      • 2010-10-15
      • 2021-07-16
      • 1970-01-01
      • 2012-12-09
      • 2011-09-03
      相关资源
      最近更新 更多