From bb3b6fcbe18e84fdda8706032658b6ec2fd0fee1 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Sun, 21 Jan 2018 21:20:13 -0500 Subject: [PATCH] Fix codemirror rendering issue where the cursor appears below the last line --- resources/assets/js/dashboard.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/assets/js/dashboard.js b/resources/assets/js/dashboard.js index 3f3c787..822aa05 100644 --- a/resources/assets/js/dashboard.js +++ b/resources/assets/js/dashboard.js @@ -564,7 +564,8 @@ function editItemInit() { setTimeout(function() { simplemde[column].value($this.attr("value")); - }, 100); + simplemde[column].refresh(); + }, 500); }); // initialize change events for back button