Forums

[Plugin: Events] Events + TinyMCE Advanced + Description Textarea (2 posts)

  1. ottergoose
    Member
    Posted 10 months ago #

    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.

  2. edgarsso
    Member
    Posted 2 months ago #

    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

Reply

You must log in to post.

About this Topic

Tags