aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2017-12-09 13:48:39 +0100
committerache <ache@ache.one>2017-12-09 13:48:39 +0100
commitb14b58194a6393d9259177116c55241408ab2d12 (patch)
treee8536002ddf889af49dfe6b1041116653c3706f7
parentInit commit (diff)
Use hChildren instead of children
A fix from wooorm. Thanks Wooorm, you are great !
-rw-r--r--app.js23
1 files 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:'<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;