From 33c2d1c3bb7989d981815ff97103328189488490 Mon Sep 17 00:00:00 2001 From: Luke Towers Date: Mon, 28 Nov 2016 15:35:00 -0600 Subject: [PATCH] Respect whitespace on disabled codeeditors This wraps the contents of a disabled codeeditor field in an `pre` element so that the browser renders it respecting the formatting / whitespace of the contents (code in this widgets case) instead of squishing it all down. --- .../backend/formwidgets/codeeditor/partials/_codeeditor.htm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/backend/formwidgets/codeeditor/partials/_codeeditor.htm b/modules/backend/formwidgets/codeeditor/partials/_codeeditor.htm index 3a754ff9c..5b703941b 100644 --- a/modules/backend/formwidgets/codeeditor/partials/_codeeditor.htm +++ b/modules/backend/formwidgets/codeeditor/partials/_codeeditor.htm @@ -1,5 +1,7 @@ previewMode): ?> -
+
+
+
- \ No newline at end of file +