From 142afd2d29a1007c22224eb8c7e0b4a70bddde3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20Ko=CC=88nemann?= Date: Wed, 18 Jan 2017 07:51:37 +0100 Subject: [PATCH] remove the h1 removal --- gulpfile.js | 1 + inc/editor.php | 10 ---------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 6d68cdd..0872791 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -161,6 +161,7 @@ gulp.task('scripts', function() { .pipe(gulp.dest('./js/')); }); +// Deleting any file inside the /src folder gulp.task('clean-source', function () { return del(['src/**/*',]); }); diff --git a/inc/editor.php b/inc/editor.php index 14160d7..1e56aa7 100644 --- a/inc/editor.php +++ b/inc/editor.php @@ -7,16 +7,6 @@ */ -// Remove h1 from block formats dropdown -add_filter('tiny_mce_before_init', 'understrap_tiny_mce_remove_h1_format' ); - -function understrap_tiny_mce_remove_h1_format($init) { - - $init['block_formats'] = 'Paragraph=p;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Pre=pre'; - return $init; -} - - // Add TinyMCE style formats add_filter( 'mce_buttons_2', 'understrap_tiny_mce_style_formats' );