diff --git a/web/editor.css b/web/editor.css index 133d99a09..1e3d588d2 100644 --- a/web/editor.css +++ b/web/editor.css @@ -3,6 +3,7 @@ background: #fff; color: #000; padding: 5px; + overflow-wrap: break-word; } /* prevent floated images from being displayed outside field */ diff --git a/web/editor.js b/web/editor.js index 7755db6fd..9983ae5ef 100644 --- a/web/editor.js +++ b/web/editor.js @@ -276,7 +276,7 @@ function setFields(fields) { txt += "contentEditable=true class=field>{0}".format(f); txt += ""; } - $("#fields").html("" + txt + "
"); + $("#fields").html("" + txt + "
"); maybeDisableButtons(); } diff --git a/web/reviewer.css b/web/reviewer.css index 2db6d023d..738de242d 100644 --- a/web/reviewer.css +++ b/web/reviewer.css @@ -1,5 +1,3 @@ -div { overflow-wrap: break-word; } - hr { background-color: #ccc; margin: 1em; @@ -7,6 +5,7 @@ hr { body { margin: 1.5em; + overflow-wrap: break-word; } img {