Skip to:
Content

BuddyPress.org

Changeset 10747


Ignore:
Timestamp:
05/12/2016 06:21:44 PM (6 years ago)
Author:
djpaul
Message:

Activity: make the at-mentions UI work for a wider range of TinyMCE instance, not just wp-admin's Visual Editor.

Fixes #6972

Props oakcreative

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/js/mentions.js

    r10141 r10747  
    249249        } else {
    250250            $( window.tinyMCE.activeEditor.contentDocument.activeElement )
    251                 .atwho( 'setIframe', $( '#content_ifr' )[0] )
     251                .atwho( 'setIframe', $( '.wp-editor-wrap iframe' )[0] )
    252252                .bp_mentions( bp.mentions.users );
    253253        }
Note: See TracChangeset for help on using the changeset viewer.