Anyone experience with At.js that can help out? I'm trying to:
- Get the inserted mentions in an array so that they can then be processed with PHP
- Prevent duplicate entries (not sure where to start with this one)
Little experience with Javascript and jQuery so any help appreciated. FYI I'm using At.js with the amazing Froala WYSIWYG Editor
Here is what I have to get the tags but I'm not sure how to get it into an array.
$(function(data){
$('#postTagsInput').atwho({
at: '@',
data: 'URL'
});
$('#postTagsInput').on("inserted.atwho", function($li, query) {
console.log(query);
var postTags = query;
$('#myResults').html(postTags);
});
});