WordPress.org

Ready to get started?Download WordPress

Forums

Add media buttons with multiple wp_editor instances in WP 3.5 (4 posts)

  1. foralien
    Member
    Posted 1 year ago #

    I'm not sure where to post this question, but hope that somebody knows the answer :)

    The case: on a post edit screen I have a second area for rich editing created with wp_editor (but it has it's own ID) inside metabox, and I need to be able to use add-media button with this second area to insert images from media library. But it does not work properly - the button opens media library dialogue, I can select images but the markup is not appeared in the textarea after selection.

    Does this case mean that new WP 3.5 insert media UI does not support multiple wp_editor instances on the sampe page? Or I'm just doing it wrong? Is it intended behaviour?

    UPD: I've found that it happens because I've run wp_editor with media buttons but without quicktags and visual edtor is disabled. Is it intended behaviour?

  2. Richard Royal
    Member
    Posted 1 year ago #

    Did you find a workaround?

    With:

    <?php wp_editor($content, $unique_id, array('textarea_rows'=>8,'media_buttons' => true )); ?>

    the media button does not work. Clicking it will scroll to the top of the page but will not open the media dialog box.

  3. hothandao
    Member
    Posted 10 months ago #

    Hi,

    I have the same issue with Richard Royal, clicking Media button will scroll to the top

    Please help me on this.
    Thanks,

  4. WPyogi
    Volunteer Moderator
    Posted 10 months ago #

    @hothandao

    You're using WP3.5? [That's the topic of this thread - it would be better to start your own per http://codex.wordpress.org/Forum_Welcome#Where_To_Post ]

Topic Closed

This topic has been closed to new replies.

About this Topic