Skip to content

Instantly share code, notes, and snippets.

@francho
Created June 26, 2014 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save francho/ba09781aa5d4b3c461b9 to your computer and use it in GitHub Desktop.
Save francho/ba09781aa5d4b3c461b9 to your computer and use it in GitHub Desktop.
Ejemplo de editable en html5
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<body>
<article id="mytext" contenteditable="true">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ac placerat purus, eu lacinia nisl. Morbi ac
tempor nunc, ut gravida lacus. Morbi laoreet libero a mollis iaculis. Ut dignissim non tellus ac
scelerisque.</p>
<p>Proin et orci quam. Vivamus a diam in ante egestas sagittis. Nam cursus ut magna vel scelerisque.</p>
</article>
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script>
$(function() {
$('#mytext').focusout(function() {
alert('Handler for .change() called.');
});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment