Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- add_filter( 'tiny_mce_before_init', 'add_frame_style' );
- /*
- * Add the new tinyMCE style
- */
- public static function add_frame_style( $params ) {
- $style_formats = json_decode( $params['style_formats'] );
- $style_formats[] = array(
- 'title' => 'Notes',
- 'block' => 'div',
- 'classes' => 'post-notes',
- 'wrapper' => true
- );
- $params['style_formats'] = json_encode( $style_formats );
- return $params;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement