aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander_Kabui2024-09-18 15:02:33 +0300
committerAlexander_Kabui2024-09-18 15:02:33 +0300
commit6ec37dbdc2d1304f96faf0b51e041faa56470a5a (patch)
treee4c1739d29e4fd2b0dcd7505b1926ba5a92a7e66
parent37fc1e0c473822ee208d59840d9785a6c03e4d30 (diff)
downloadgenenetwork2-6ec37dbdc2d1304f96faf0b51e041faa56470a5a.tar.gz
Update editor preview on mouse click over the editor.
-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);
}