We would like to know how to prevent editable content div growing horizontally.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
div {<!-- ww w .ja va2 s . c o m-->
width: 200px;
background-color: #EEE;
word-wrap: break-word;
}
</style>
</head>
<body>
<div contenteditable>ABCDEFGHIJKLMNOPQRSTUVWXYZ</div>
</body>
</html>
The code above is rendered as follows: