• I’m running WordPress 2.7, Events 1.6.1, and TinyMCE Advanced 3.2. A client wanted to be able to format the text in the event description. To accomplish this, I replaced the the_event_editor() function in wp-events-manage.php with the following code:

    function the_event_editor($content, $dashboard = true) {
    
        wp_admin_css('thickbox');
        wp_print_scripts('jquery-ui-core');
        wp_print_scripts('jquery-ui-tabs');
        wp_print_scripts('editor');
        add_thickbox();
        wp_print_scripts('media-upload');
        if (function_exists('wp_tiny_mce')) wp_tiny_mce();
        if(user_can_richedit())
    	wp_enqueue_script('editor');
    
        echo "<div id='editorcontainer'><textarea rows='6' cols='20' name='events_pre_event' tabindex='4' id='content'>" . $content . "</textarea></div>";
    }

    This displays the rich text editor with the buttons specified through the TinyMCE Advanced plugin.

Viewing 1 replies (of 1 total)
  • Hello!
    I tried to look for similar code in the current version of Events and haven’t found anything similar. Have adapted your modified code to the current version?

    Thanks!
    Ed

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Events] Events TinyMCE Advanced Description Textarea’ is closed to new replies.