Sha256: e05e94715553051d3c73e987e25abf66d107732f3ca90b431dd5646e064d2c1b
Contents?: true
Size: 434 Bytes
Versions: 8
Compression:
Stored size: 434 Bytes
Contents
@Mercury.modalHandlers.htmlEditor = -> # fill the text area with the content content = Mercury.region.content(null, true, false) @element.find('textarea').val(content) # replace the contents on form submit @element.find('form').on 'submit', (event) => event.preventDefault() value = @element.find('textarea').val().replace(/\n/g, '') Mercury.trigger('action', {action: 'replaceHTML', value: value}) @hide()
Version data entries
8 entries across 8 versions & 3 rubygems