William Blake,
мысли вслух ...
var abrakadbra = [];
$(".hint2basic").summernote({
height: 100,
toolbar: false,
placeholder: 'type with apple, orange, watermelon and lemon',
hint: {
words: ['apple', 'orange', 'watermelon', 'lemon'],
match: /\b(\w{1,})$/,
search: function (keyword, callback) {
callback($.grep(abrakadbra, function (item) {
return item.indexOf(keyword) === 0;
}));
}
}
});