Skip to content

Commit

Permalink
Merge pull request #735 from helsingborg-stad/feature/remove-h1-from-…
Browse files Browse the repository at this point in the history
…wysiwyg

feat: Remove h1 from wysiwyg
  • Loading branch information
Anna authored Nov 1, 2023
2 parents 0be7829 + a3f0aec commit 6df0a1c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/Admin/UI/Editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ public function editorStyle()
*/
public function styleFormat($settings)
{
//Removes h1 from the available element.
$settings['block_formats'] = 'Paragraph=p;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre;';

// Set color scheme class on mce body
$color = get_field('color_scheme', 'option');

Expand Down

0 comments on commit 6df0a1c

Please sign in to comment.