gpt4 book ai didi

javascript - CKEditor 从表中过滤 'class' 属性

转载 作者:行者123 更新时间:2023-12-03 09:30:13 25 4
gpt4 key购买 nike

我试图允许表上的类属性,但不允许 html 中的所有标签。

config.allowedContent = true;

我尝试了几种方法,但都不起作用,因为编辑器仍然过滤类属性。

我已经尝试过:

table[class];

table[class](*);

table[class](*);table[class]{*};

*[class](*);

*(*);

*(*);*{*};

一切都没有结果,有任何建议。或者有人遇到过同样的问题吗?

亲切的问候,

尼克

最佳答案

尝试:

config.extraAllowedContent = 'table(*)';

详细了解允许的内容规则格式:http://docs.ckeditor.com/#!/guide/dev_allowed_content_rules

关于javascript - CKEditor 从表中过滤 'class' 属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31534940/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com