WordPress.org

Ready to get started?Download WordPress

Forums

BP-TinyMCE
Can't input text in activity reply (6 posts)

  1. peeld
    Member
    Posted 2 years ago #

    Although I can post in the forums, and I can post new items on the activity feed, this plugin won't let me enter text as a response to an activity feed post. Please advise.

    http://wordpress.org/extend/plugins/bp-tinymce/

  2. tazeverywhere
    Member
    Posted 2 years ago #

    Hello,
    I have the same problem. Work perfectly everywhere else.

    It seems that there is a jquery error (firebug console):

    j is null
    /wp-includes/js/tinymce/tiny_mce.js?ver=342-20110630

    Is there some fix or is it possible to disable tynimce only on "response to an activity" ?

    Thanks in advance for your help.

    Wp 3.2.1
    BP 1.2.10
    Bp-tynimce 0.4.1

  3. Bunkered
    Member
    Posted 2 years ago #

    Hi,

    I've just done a hack for this, it's not great and I'm sure someone can come up with a better one.

    Here's what I did:

    Removed line 85 form bp-tinymce.php

    unset( $initArray['editor_selector'] );

    This now says that for the editor to display it will need the class 'theEditor'.

    I only wanted the editor in the forum part of BP so I then added that class to the textareas in form-topic.php & form-reply.php.

    I guess if you wanted it on comments it would be simple to add that class to your comment form template.

    I'll probably look more into this when I have a bit more time.

  4. Phlux0r
    Member
    Posted 2 years ago #

    Same problem for me. Seems to be that TinyMCE disabled the editor for hidden containers.

    What I've done, is basically added an exception to the initArray to NOT convert any of the activity comment textareas to the WYSIWYG by implementing the following filter hook:

    add_filter( 'bp_tinymce_init_parms', 'my_bp_tinymce_init_parms');
    function my_bp_tinymce_init_parms($initArray) {
        // change the available buttons - optional
        $initArray['theme_advanced_buttons1'] = 'bold, italic, underline, blockquote, separator, strikethrough, bullist, numlist, link, unlink, image';
        // Disable the WYSIWYG on textareas with class ac-input
        $initArray['editor_deselector'] = 'ac-input';
        return $initArray;
    }

    Here, I also change the available buttons... in case anyone wants to do that too.

    HTH

  5. peeld
    Member
    Posted 2 years ago #

    I just used another plugin :)

  6. Phlux0r
    Member
    Posted 2 years ago #

    @peeld

    Which one?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags