Sha256: a84808516ae9e56888ad52b679172d9e6a8c627594050ae115c47fb938322259

Contents?: true

Size: 457 Bytes

Versions: 3

Compression:

Stored size: 457 Bytes

Contents

$("#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
        })
      )
    },
  },
})

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mazer-rails-0.1.4 vendor/assets/javascripts/pages/summernote.js
mazer-rails-0.1.3 vendor/assets/javascripts/pages/summernote.js
mazer-rails-0.1.2 assets/javascripts/pages/summernote.js