mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
move overflow-wrap into body, apply to editor too
This commit is contained in:
parent
eda1849c33
commit
b85cc4321b
3 changed files with 3 additions and 3 deletions
|
@ -3,6 +3,7 @@
|
||||||
background: #fff;
|
background: #fff;
|
||||||
color: #000;
|
color: #000;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* prevent floated images from being displayed outside field */
|
/* prevent floated images from being displayed outside field */
|
||||||
|
|
|
@ -276,7 +276,7 @@ function setFields(fields) {
|
||||||
txt += "contentEditable=true class=field>{0}</div>".format(f);
|
txt += "contentEditable=true class=field>{0}</div>".format(f);
|
||||||
txt += "</td></tr>";
|
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();
|
maybeDisableButtons();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
div { overflow-wrap: break-word; }
|
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
background-color: #ccc;
|
background-color: #ccc;
|
||||||
margin: 1em;
|
margin: 1em;
|
||||||
|
@ -7,6 +5,7 @@ hr {
|
||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 1.5em;
|
margin: 1.5em;
|
||||||
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
|
|
Loading…
Reference in a new issue