Sha256: b371a6de8e307c170267f59eaeee1c02d5d8b9c537d478a5e04003a2bf1dfa4d
Contents?: true
Size: 805 Bytes
Versions: 8
Compression:
Stored size: 805 Bytes
Contents
Tenon.features.Editor = reinitInline: -> for key in Object.keys(CKEDITOR.instances) instance = CKEDITOR.instances[key] instance.destroy() if instance?.editable()?.isInline() CKEDITOR.inlineAll() watchChanges: -> updateElement = (el) -> $el = $(el) $el.next('input[type=hidden]').val($el.html()) for key in Object.keys(CKEDITOR.instances) instance = CKEDITOR.instances[key] if instance?.editable()?.isInline() # Watch changes via Source instance.on 'mode', -> editable = instance.editable() editable.attachListener editable, 'input', (e) -> updateElement(e.editor.element.$) # Watch changes in the main editor instance.on 'change', (e) -> updateElement(e.editor.element.$)
Version data entries
8 entries across 8 versions & 1 rubygems