mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
34 lines
1,003 B
HTML
34 lines
1,003 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script src="../modules/jquery/jquery.js"></script>
|
|
<script>
|
|
$( function() {
|
|
//console.log("start");
|
|
|
|
$(document).bind('DOMCharacterDataModified', function(e) {
|
|
//console.log('DOMCharacterDataModified', e);
|
|
//console.log($('div').html());
|
|
});
|
|
|
|
/*
|
|
$('textarea').bind('keypress', function(e) {
|
|
console.log('keypress', e);
|
|
});
|
|
|
|
$('textarea').bind('keydown', function(e) {
|
|
console.log(e.which, e);
|
|
});
|
|
|
|
$('textarea').bind('keyup', function(e) {
|
|
console.log($('textarea').val());
|
|
});
|
|
*/
|
|
|
|
} );
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div style="width: 500px; height: 200px; border: solid 1px;" contenteditable="true">Lorem ipsum</div>
|
|
</body>
|
|
</html> |