diff options
Diffstat (limited to 'app.js')
-rw-r--r-- | app.js | 23 |
1 files changed, 10 insertions, 13 deletions
@@ -17,22 +17,19 @@ function plugin() { } if( value.search(END) > 0 ) { return eat(value.slice(0,value.search(END))+value.match(END)[0])({ - type:'html', - value:'<textarea>' + value.slice(value.match(START)[0].length+1, value.search(END)-1 ) + '</textarea>' - /* type: 'form', - children: [ { - type: 'texterea', - children: [ { type: 'text', - value: value.slice(value.match(START)[0].length+1, value.search(END)-1 ) - } ], - data: { - hName: 'textarea' - } - }], data: { hName: 'form' - }*/ + hChildren : [ { + type: 'texterea', + data: { + hName: 'textarea', + hChildren : [ { type: 'text', + value: value.slice(value.match(START)[0].length+1, value.search(END)-1 ) + } ] + } + }] + } }); } else return true; |