Forums

[resolved] javascript insert editor content issue (2 posts)

  1. Dale Sattler
    Member
    Posted 4 months ago #

    I'm trying to create a metabox that inserts html into the editor when a button is clicked.

    I've been trying to use window.send_to_editor, but this seems to only fire when the thickbox media uploader is present. I'm not uploading any media files, rather just wanting to insert a shortcode derived from my metaboxes fields.

    is there another method to insert content into the editor?

  2. Dale Sattler
    Member
    Posted 4 months ago #

    To answer my own question,

    send_to_editor(html); works fine.

Reply

You must log in to post.

About this Topic