From b14b58194a6393d9259177116c55241408ab2d12 Mon Sep 17 00:00:00 2001 From: ache Date: Sat, 9 Dec 2017 13:48:39 +0100 Subject: Use hChildren instead of children A fix from wooorm. Thanks Wooorm, you are great ! --- app.js | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/app.js b/app.js index b244cb8..dcc14b4 100644 --- a/app.js +++ b/app.js @@ -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:'' - /* 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; -- cgit v1.2.3