jeff-collins/ment.io

Using mention-select when we have mention-template-url

shadihrr opened this issue · 0 comments

I use the ment.io as follow
<textarea ng-model="input.message" required mentio-select="mentionSelected(person)" = maxlength="1500" msd-elastic mentio mentio-typed-text="typedTerm" mentio-template-url="/people-mentions.tpl" mentio-items="users | filter:label:typedTerm"></textarea>
I want to call mentionSelected() function, but item person is undefined because its value is defined in people-mentions.tpl as follow

<script type="text/ng-template" id="/people-mentions.tpl"> <ul class="list-group mention-list-up mention-list triangle-isosceles"> <li mentio-menu-item="person" ng-repeat="person in items" class="list-group-item" style="position: relative; margin-bottom: 15px"> <span class="text-primary" style="left: 35px; margin-left: 40px; font-size: 12px; padding-top: 10px" ng-bind-html="person.user.userInfo.firstName | mentioHighlight:typedTerm:'menu-highlighted' | unsafe" ></span> </li> </ul> </script>

I tried to add mentio-select on the ul in the code above but it didn't work how can I do this?