git ssb

16+

Dominic / patchbay



Tree: 9d629c55b19f5dc728643731fffb36dac23c0eca

Files: 9d629c55b19f5dc728643731fffb36dac23c0eca / modules / compose.js

448 bytesRaw
1var h = require('hyperscript')
2//this decorator expects to be the first
3exports.message_compose = function (el, meta, sbot) {
4 if(el) return el
5
6 meta = meta || {}
7 var ta = h('pre.editable.fixed', 'HELLO')
8 ta.setAttribute('contenteditable', '')
9
10 return h('div', h('div.column', ta,
11 h('button', 'publish', {onclick: function () {
12 meta.text = ta.innerText || ta.textContent
13 alert(JSON.stringify(meta, null, 2))
14 }})))
15}
16
17
18
19

Built with git-ssb-web