ajax loader

Just bought the AJAX dropdown but not working on the forum replies

Home Forums Mentions AJAX Drop-down SupportJust bought the AJAX dropdown but not working on the forum replies

This topic contains 1 reply, has 2 voices, and was last updated by  support 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #640

    Maybe I misunderstood before I bought but I was looking for something that will give @mention dropdown for forum replies.  LEt me know if this is possible or if not, how to refund.

    #641

    support
    Participant

    Hello,

    If anybody was having a similar issue as James, we had the tinyMCE editor JavaScript filters not working as they are not triggered, and queuing the JS to the footer did help, try adding the following to your child theme’s functions.php file, or as a custom plugin.

    remove_all_filters('bp_activity_maybe_load_mentions_scripts', 99999);
    add_filter('bp_activity_maybe_load_mentions_scripts', '__return_false', 99999);
     
    add_action('wp_footer', function( $array ){
        if ( !is_bbpress() )
            return;
        ?>
        <script type="text/javascript">
        tinyMCEPreInit.mceInit.bbp_reply_content.setup = function(ed) {
            ed.on("init", function() {
                tinyMCE.activeEditor.show();
                if( typeof bmaAtSettings !== "undefined"){                  
                    ed.on("keydown", function(e) {
                      if(e.keyCode == 13 && jQuery(ed.contentDocument.activeElement).atwho("isSelecting"))
                        return false
                    });
                }
            });
        }
        tinyMCEPreInit.mceInit.bbp_reply_content.init_instance_callback = function(ed) {
            if( typeof bmaAtSettings !== "undefined")          
                jQuery(ed.contentDocument.activeElement).atwho(bmaAtSettings);
        }
        </script>
        <?php
    }, 999);
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.