Recogito Comments-Mention Widget
A Recogito comment thread widget that lets you @-mention users like on Facebook or Twitter.
Run in Development Mode
$ npm start
Build Widget Distribution
$ npm run build
Using the plugin
<html>
<head>
<script src="recogito.min.js"></script>
<script src="recogito-comments-mention.min.js"></script>
</head>
<body>
<script type="text/javascript">
(function() {
let users = [
{
id: 'johndoe@apple.com',
name: 'John'
},
{
id: '1',
name: 'Johnny'
}
]
var r = Recogito.init({
content: 'content',
widgets: [
{ widget: recogito.CommentsMention, userSuggestions: users }
]
});
})();
</script>
</body>
</html>