ADA Compliance issues with Tinymce and H1's
-
Aloha,
I have been using this code in the functions.php to remove the Heading 1 and the colored text button:
<?php // Remove TinyMCE default formats and add custom (p, h3, h4, h5, h6); add_filter('tiny_mce_before_init', 'customformatTinyMCE' ); function customformatTinyMCE($init) { // Add block format elements you want to show in dropdown $init['theme_advanced_blockformats'] = 'p,h3,h4,h5,h6'; $init['theme_advanced_disable'] = 'forecolor'; // Add elements not included in standard tinyMCE doropdown p,h1,h2,h3,h4,h5,h6 //$init['extended_valid_elements'] = 'code[*]'; return $init; } ?>
With 3.9 it ushered in tinymce 4.0 and broke that snippet. Does anyone have a fix that I could use to remove the H1 and color options?
Having more than one H1 will make our pages out of compliance since our content is not using <section> tags. Also giving the option for content editors to add color to text can lead to issues with contrast.
I appreciate any insight.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘ADA Compliance issues with Tinymce and H1's’ is closed to new replies.