Sha256: 592fac5f19a5a11506440cdb1a6f6f4ed3a20f74aef90a97ce234601cb62e611
Contents?: true
Size: 356 Bytes
Versions: 5
Compression:
Stored size: 356 Bytes
Contents
import dom from '../core/dom'; /** * textarea auto sync. */ export default class AutoSync { constructor(context) { this.$note = context.layoutInfo.note; this.events = { 'summernote.change': () => { this.$note.val(context.invoke('code')); } }; } shouldInitialize() { return dom.isTextarea(this.$note[0]); } }
Version data entries
5 entries across 5 versions & 1 rubygems