gpt4 book ai didi

tinymce - 关闭表中的自动样式 [Tinymce]

转载 作者:行者123 更新时间:2023-12-05 08:42:49 27 4
gpt4 key购买 nike

因为没有更多的 Tinymce 论坛,如果我可以问有没有办法通过在源代码中添加 style="width: or height:"来关闭表格功能。

谢谢

最佳答案

我通过将以下内容添加到 tinymce 配置中解决了这个问题:

invalid_styles: 'width height'

这从所有元素中剥离宽度和高度样式,这适用于我的用例。我相信您也可以指定这适用于哪些元素(例如 table、tr、th、td)。

invalid_styles: { 
'table': 'width height',
'tr' : 'width height',
'th' : 'width height',
'td' : 'width height'
}

参见 https://www.tiny.cloud/docs/tinymce/6/content-filtering/#invalid_styles

关于tinymce - 关闭表中的自动样式 [Tinymce],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38250647/

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