Skip to content
This repository has been archived by the owner on Sep 18, 2019. It is now read-only.

TinyMCE won't load on Text_Editor_Custom_Control #22

Open
dbhynds opened this issue Nov 23, 2015 · 1 comment
Open

TinyMCE won't load on Text_Editor_Custom_Control #22

dbhynds opened this issue Nov 23, 2015 · 1 comment

Comments

@dbhynds
Copy link

dbhynds commented Nov 23, 2015

I've added a Text_Editor_Custom_Control to my Customizer using the code below. When I navigate to that section in the Customizer, the field appears with the "Add Media" button plus the "Visual" and "Text" tabs. However, the TinyMCE editor doesn't load. It doesn't add the editor buttons, and the input element itself remains a textarea, instead of being replaced by the iframe. There are no js errors in the console, nor are there any PHP errors (WP_DEBUG is set to 'true').

  $wp_customize->add_section( 'repeated_content' , array(
      'title'      => __( 'Repeated Content', 'sage' ),
  ) );
  $wp_customize->add_setting( 'scholarships' , array(
      'default'     => '',
      'transport'   => 'refresh',
  ) );
  $wp_customize->add_control( new Text_Editor_Custom_Control( $wp_customize, 'scholarships', array(
    'label'      => __( 'Scholarships', 'sage' ),
    'section'    => 'repeated_content',
    'settings'   => 'scholarships',
  ) ) );
@Tomgroot
Copy link

Tomgroot commented May 2, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants