Skip to content

Commit

Permalink
2.3.25
Browse files Browse the repository at this point in the history
  • Loading branch information
cdukes committed Jan 14, 2016
1 parent 862a01e commit 44f100a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ grunt
- Disable some or all of the default Genesis theme option meta boxes (template, some disabled by default)

## Changelog
### 2.3.25 (January 14, 2016)
- Turn off TinyMCE's auto-expand

### 2.3.24 (January 2, 2016)
- Fix `Colors` partial reference

Expand Down
9 changes: 6 additions & 3 deletions includes/admin/admin-views.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,16 @@ function bfg_add_editor_style() {
/**
* Modifies the TinyMCE settings array.
*
* See: https://core.trac.wordpress.org/ticket/29360
*
* @since 2.0.0
*/
function bfg_tiny_mce_before_init( $options ) {

$options['element_format'] = 'html'; // See: http://www.tinymce.com/wiki.php/Configuration:element_format
$options['schema'] = 'html5-strict'; // Only allow the elements that are in the current HTML5 specification. See: http://www.tinymce.com/wiki.php/Configuration:schema
$options['block_formats'] = 'Paragraph=p;Header 2=h2;Header 3=h3;Header 4=h4;Blockquote=blockquote'; // Restrict the block formats available in TinyMCE. See: http://www.tinymce.com/wiki.php/Configuration:block_formats
$options['element_format'] = 'html'; // See: http://www.tinymce.com/wiki.php/Configuration:element_format
$options['schema'] = 'html5-strict'; // Only allow the elements that are in the current HTML5 specification. See: http://www.tinymce.com/wiki.php/Configuration:schema
$options['block_formats'] = 'Paragraph=p;Header 2=h2;Header 3=h3;Header 4=h4;Blockquote=blockquote'; // Restrict the block formats available in TinyMCE. See: http://www.tinymce.com/wiki.php/Configuration:block_formats
$options['wp_autoresize_on'] = false;

return $options;

Expand Down

0 comments on commit 44f100a

Please sign in to comment.