aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'gn2/wqflask')
-rw-r--r--gn2/wqflask/templates/gn_editor.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/gn2/wqflask/templates/gn_editor.html b/gn2/wqflask/templates/gn_editor.html
index 6f4685ac..14a41caa 100644
--- a/gn2/wqflask/templates/gn_editor.html
+++ b/gn2/wqflask/templates/gn_editor.html
@@ -228,6 +228,9 @@
editor.container.style.resize = "horizontal";
editor.getSession().on("change", function(e){
updatePreview()
+ })
+ editor.on("click", function(e){
+ updatePreview()
})
editor.setValue(data, -1);
}