Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have multiple WYSIWYG editors on a page using wp_editor. I am trying to add the setting 'teeny' => true, but it seems to only apply to the first editor instance.

All subsequent editors are just plain text areas and I get a javascript error in the console. "Uncaught TypeError: Cannot set property 'innerHTML' of null"

<?php
            $content = $field['url'];
            $settings = array(
                            'textarea_name' => 'url[]', 
                            'teeny' => true,
                            'raw' => true, 
                            'editor_class' => 'movie_description_editor' 

                            );
        ?>

        <td><?php wp_editor($content, 'movie_description-'.$num, $settings ); ?></td>
share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.