Ckeditor CK编辑器-复制和粘贴

Ckeditor CK编辑器-复制和粘贴,ckeditor,Ckeditor,我正在尝试复制和粘贴自定义下拉列表。自定义下拉html如下所示- <span class="fp-dropdown-popup elastic-input error" contenteditable="false"> <button class="fp-dropdown-button" tabindex="0"> <span class="fp-placeholder">Select One</span> <

我正在尝试复制和粘贴自定义下拉列表。自定义下拉html如下所示-

<span class="fp-dropdown-popup elastic-input error" contenteditable="false">
    <button class="fp-dropdown-button" tabindex="0">
        <span class="fp-placeholder">Select One</span>
    </button>
    <span class="fp-menu" data-fp-items="[goods]">
    </span>
</span>  
<span contenteditable="false">
    <button tabindex="0">
        <span>Select One</span>
    </button>
    <span data-fp-items="[goods]">
    </span>
</span>
所有类都已从所有元素中删除

我已经浏览了几篇帖子,上面说要确保允许的内容是真实的
config.allowedContent=true


我还应该寻找什么来确定这些属性被删除的位置?

看起来您的规则没有被应用(或者被覆盖)

如果在浏览器控制台中运行

CKEDITOR.instances[您的实例名称].filter.allowedContent

它应该输出长度为零的数组,这意味着一切都是允许的

您可以尝试在底部编辑器中粘贴自定义下拉列表,因为对我来说,所有内容都保留了下来