mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 08:10:35 +00:00
Playground for IME
This commit is contained in:
parent
e174082b35
commit
9c311d0d94
Notes:
Gabriel Wicke
2012-02-27 16:40:01 +00:00
28
contentEditable/ime.html
Normal file
28
contentEditable/ime.html
Normal file
|
@ -0,0 +1,28 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<script src="../modules/jquery/jquery.js"></script>
|
||||
<script>
|
||||
$( function() {
|
||||
console.log("start");
|
||||
|
||||
$('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>
|
||||
<textarea></textarea>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue