Support » Plugins and Hacks » Hacks » How to convert Text Area into Rich Text Editor

  • Hi all!

    I have some problems with my text areas. I have a form in a backend tabbed menu with some inputs fields. All them works properly ( you can save and show data inside) but I would like to change the text area for a text editor. I tried to use the function wp_editor() and it shows the editor but not de content inside. How can I pass the ID of the text area and load the content in to the editor?

    Thanks in advance

Viewing 1 replies (of 1 total)
  • add_settings_field( 'Textarea Element', __( 'Textarea a TinyMCE', 'mymenu' ),
    'theme_input_examples', 'input _section'
    And here I made and echo to show it on my admin page:
    function textarea_element_callback() { $options = get_option( 'theme_input_examples' ); echo '' . $options['textarea_example'] . ''; }
    This is the menu where I display the textarea:
    add_submenu_page( 'theme_menu', _( 'Opfolgning pa kontrakt', 'mymenu' ), _( 'Opfolgning pa kontrakt', ' mymenu ' ), 'administrator', 'theme_input_examples', create_function( null, 'theme_display( "input_examples_4" );' ) );

    This is part of the code. If I put this one:

    wp_editor($options['textarea_example'], "textarea_example", array(
        'tinymce' => array(
            'theme_advanced_buttons1' => 'bold,italic,underline',
            'theme_advanced_buttons2' => '',
            'theme_advanced_buttons3' => ''

    The editor shows the content from the textarea. How could I put the last code to send it with my form?

Viewing 1 replies (of 1 total)
  • The topic ‘How to convert Text Area into Rich Text Editor’ is closed to new replies.