diff --git a/templates/textbox.html b/templates/textbox.html
index 27f0bcee21..bbe6476746 100644
--- a/templates/textbox.html
+++ b/templates/textbox.html
@@ -29,6 +29,7 @@ $(function(){
, lineNumbers: true
% endif
});
+ cm.refresh();
// codemirror_set["${id}"] = cm; // track it for refreshes
});