From 6ec37dbdc2d1304f96faf0b51e041faa56470a5a Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Wed, 18 Sep 2024 15:02:33 +0300 Subject: Update editor preview on mouse click over the editor. --- gn2/wqflask/templates/gn_editor.html | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gn2/wqflask/templates') 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); } -- cgit v1.2.3