We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 35606
    • 5 Posts
    I’m having trouble disabling some of the default formats (e.g. h2) in TinyMCE - I assumed that this would be possible in the Plugin Properties, and I think in Evo it was through the ’formats’ property, but when I try this in Revo it just breaks the editor.

    Poking around in the class file revealed that the properties are set in a nested array;

    'formats' => array(
      'alignleft' => array('selector' => 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img', 'classes' => 'justifyleft'),
      'alignright' => array('selector' => 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img', 'classes' => 'justifyright'),
      'alignfull' => array('selector' => 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img', 'classes' => 'justifyfull'),
    ),
    


    Which the formats property breaks, since it’s set via an array_merge(). Are there special properties for these formats, or is what I’m trying to do not possible?

    Thanks