Label: texteditor

  • Mastering the TinyMCE Styles Dropdown in the WordPress Visual Editor

    add_filter( ’tiny_mce_before_init’, ‘my_mce_before_init’ );function my_mce_before_init( $settings ) { $style_formats = array( array( ’title’ => ‘Button’, ‘selector’ => ‘a’, ‘classes’ => ‘button’ ), array( ’title’ => ‘Callout Box’, ‘block’ => ‘div’, ‘classes’ => ‘callout’, ‘wrapper’ => true ), array( ’title’ => ‘Bold Red Text’, ‘inline’ => ‘span’, ‘styles’ => array( ‘color’ => ‘#f00’, ‘fontWeight’ => ‘bold’…

  • Display the Full TinyMCE Editor In WordPress – WPMU DEV

    add_filter( ’tiny_mce_before_init’, ‘myformatTinyMCE’ );function myformatTinyMCE( $in ) {$in[‘wordpress_adv_hidden’] = FALSE;return $in;} Source: Display the Full TinyMCE Editor In WordPress – WPMU DEV