WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] wp_editor (wp tinymce) position (3 posts)

  1. Igor Sazonov
    Member
    Posted 1 year ago #

    Hi everyone!
    I use wp_editor function to make it for textarea edit:

    wp_editor($myval, "myid", array(
                                'teeny' => true,
                                'textarea_name' => "myname"
                                ));

    , textarea in html goes after label for it and also inside li element. But wp_editor makes tinymce editor before li, outside of lebel etc. Is it possible to make wp_editor tinymce as usual element?

    [ Moved to: how-to and troubleshooting ]

  2. Igor Sazonov
    Member
    Posted 1 year ago #

    OK, resolved! the problem is about void return of wp_editor: just echo, i think its bad..
    solution like this:

    ob_start();
    wp_editor($yourval, $yourid, $yoursettingsarray);
    $yourvar = ob_get_contents();
    ob_end_clean();
  3. Eustachy Oskarensen
    Member
    Posted 1 year ago #

    Thanx for solution! was looking for the same problem!

Topic Closed

This topic has been closed to new replies.

About this Topic