diff --git a/nodes/core/core/80-function.html b/nodes/core/core/80-function.html
index ac997fe3d..5315080d0 100644
--- a/nodes/core/core/80-function.html
+++ b/nodes/core/core/80-function.html
@@ -131,6 +131,9 @@
$("#node-input-func").val(this.editor.getValue());
delete this.editor;
},
+ oneditcancel: function() {
+ delete this.editor;
+ },
oneditresize: function(size) {
var rows = $("#dialog-form>div:not(.node-text-editor-row)");
var height = $("#dialog-form").height();
diff --git a/nodes/core/core/80-template.html b/nodes/core/core/80-template.html
index 12c87b5a3..0a2ee5d7c 100644
--- a/nodes/core/core/80-template.html
+++ b/nodes/core/core/80-template.html
@@ -140,6 +140,9 @@
$("#node-input-template").val(this.editor.getValue())
delete this.editor;
},
+ oneditcancel: function() {
+ delete this.editor;
+ },
oneditresize: function(size) {
var rows = $("#dialog-form>div:not(.node-text-editor-row)");
var height = $("#dialog-form").height();
diff --git a/nodes/core/core/90-comment.html b/nodes/core/core/90-comment.html
index c20765351..050eb7b6f 100644
--- a/nodes/core/core/90-comment.html
+++ b/nodes/core/core/90-comment.html
@@ -66,6 +66,9 @@
$("#node-input-info").val(this.editor.getValue());
delete this.editor;
},
+ oneditcancel: function() {
+ delete this.editor;
+ },
oneditresize: function(size) {
var rows = $("#dialog-form>div:not(.node-text-editor-row)");
var height = $("#dialog-form").height();