【发布时间】:2017-09-08 01:27:18
【问题描述】:
我正在使用 tinymce 4 和 removeformat 按钮。它工作得很好。 现在我只需要删除特定格式(b,强)。我找到了
removeformat: [
{selector: 'b,strong,em,i,font,u,strike', remove : 'all', split : true, expand : false, block_expand: true, deep : true},
{selector: 'span', attributes : ['style', 'class'], remove : 'empty', split : true, expand : false, deep : true},
{selector: '*', attributes : ['style', 'class'], split : false, expand : false, deep : true}
],
关于它的文档在哪里?我需要了解每个参数(展开、深入...)
如果我选择图像并单击删除格式,我将失去课程。我怎样才能避免这种行为?我试图删除 * 选择器行,但它不起作用。
我还尝试将原始 js 附加到调试中。我看到我的 removeformat 行没有被考虑。它只考虑其默认的 removeformat。
谢谢
【问题讨论】: