Files
admin/public/assets/js/pages/summernote.js
Husanjonazamov e0f1989655 classify admin
2026-02-24 12:52:01 +05:00

21 lines
477 B
JavaScript

$("#summernote").summernote({
tabsize: 2,
height: 120,
})
$("#hint").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(this.words, function (item) {
return item.indexOf(keyword) === 0
})
)
},
},
})