Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="//code.jquery.com/jquery.min.js"></script>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
<textarea class="paginate"></textarea>
<!-- this is for info only -->
<div style="position: absolute; top: 25px; right: 5px; width: 140px;">A solution for<br><a href="http://stackoverflow.com/questions/6042115/">this question</a>.</div>
</body>
</html>
 
$('textarea.paginate').on('keydown', function(event) {
    // scrollbars apreared
    if (this.clientHeight < this.scrollHeight) {
       alert("Please add a new card for having a better format. Remember this is a WYSIWYG");
    }
});
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
DiegoTcpro
0viewers