From cc73aec3baf16ed54b2a8465f16ceb968e2375d1 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 20 Sep 2018 21:03:23 -0400 Subject: [PATCH] Add postprocess_liveupdate JS event dispatch on post preview --- view/js/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/view/js/main.js b/view/js/main.js index ae9cb23d8..b41750b6a 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -667,6 +667,7 @@ function preview_post() { if (data.preview) { $("#jot-preview-content").html(data.preview); $("#jot-preview-content" + " a").click(function() {return false;}); + document.dispatchEvent(new Event('postprocess_liveupdate')); } }, "json"