input -> textarea
parent
db86642364
commit
5489cb49c3
|
|
@ -264,9 +264,9 @@
|
||||||
<label for="node-input-property"><i class="fa fa-ellipsis-h"></i> Property:</label>
|
<label for="node-input-property"><i class="fa fa-ellipsis-h"></i> Property:</label>
|
||||||
<input type="text" id="node-input-property" style="width: 70%"/>
|
<input type="text" id="node-input-property" style="width: 70%"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row node-text-editor-row">
|
||||||
<label for="node-input-help_text"><i class="fa fa-ellipsis-h"></i> Help text:</label>
|
<input type="hidden" id="node-input-help_text" autofocus="autofocus">
|
||||||
<input type="text" id="node-input-help_text" style="width: 70%"/>
|
<div style="height: 250px; min-height:150px;" class="node-text-editor" id="node-input-help_text-editor"></div>
|
||||||
</div>
|
</div>
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
@ -285,6 +285,23 @@
|
||||||
outputs: 2,
|
outputs: 2,
|
||||||
label: function() {
|
label: function() {
|
||||||
return this.name || "parser entry point";
|
return this.name || "parser entry point";
|
||||||
}
|
},
|
||||||
|
oneditprepare: function() {
|
||||||
|
var that = this;
|
||||||
|
this.editor = RED.editor.createEditor({
|
||||||
|
id: 'node-input-help_text-editor',
|
||||||
|
value: $("#node-input-help_text").val()
|
||||||
|
});
|
||||||
|
this.editor.focus();
|
||||||
|
},
|
||||||
|
oneditsave: function() {
|
||||||
|
$("#node-input-help_text").val(this.editor.getValue());
|
||||||
|
this.editor.destroy();
|
||||||
|
delete this.editor;
|
||||||
|
},
|
||||||
|
oneditcancel: function() {
|
||||||
|
this.editor.destroy();
|
||||||
|
delete this.editor;
|
||||||
|
},
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue