Tinymce 和删除格式选项

Tinymce and removeformat option

我正在使用 tinymce 4 和删除格式按钮。它工作得很好。 现在我只需要删除特定格式(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}
            ],

关于它的文档在哪里?我需要了解每个参数(展开、深入...)

如果我 select 一个图像并单击删除格式,我将丢失 类。我怎样才能避免这种行为?我试图删除 * selector 行,但它不起作用。

我也试过附上原来的js调试。我看到我的 removeformat 行没有被考虑。它只考虑其默认的删除格式。

谢谢

官方文档(https://www.tinymce.com/docs/configure/content-formatting/#removingaformat)中的例子是错误的。应该是:

tinymce.init({
  selector: 'textarea',  // change this value according to your HTML
  format: {
      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}
      ]
  }
});