move overflow-wrap into body, apply to editor too

This commit is contained in:
Damien Elmes 2017-11-29 16:19:34 +10:00
parent eda1849c33
commit b85cc4321b
3 changed files with 3 additions and 3 deletions

View File

@ -3,6 +3,7 @@
background: #fff;
color: #000;
padding: 5px;
overflow-wrap: break-word;
}
/* prevent floated images from being displayed outside field */

View File

@ -276,7 +276,7 @@ function setFields(fields) {
txt += "contentEditable=true class=field>{0}</div>".format(f);
txt += "</td></tr>";
}
$("#fields").html("<table cellpadding=0 width=100%>" + txt + "</table>");
$("#fields").html("<table cellpadding=0 width=100% style='table-layout: fixed;'>" + txt + "</table>");
maybeDisableButtons();
}

View File

@ -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 {