Index: trunk/extensions/VisualEditor/contentEditable/ime.html |
— | — | @@ -4,8 +4,14 @@ |
5 | 5 | <script src="../modules/jquery/jquery.js"></script> |
6 | 6 | <script> |
7 | 7 | $( function() { |
8 | | - console.log("start"); |
| 8 | + //console.log("start"); |
9 | 9 | |
| 10 | + $(document).bind('DOMCharacterDataModified', function(e) { |
| 11 | + //console.log('DOMCharacterDataModified', e); |
| 12 | + //console.log($('div').html()); |
| 13 | + }); |
| 14 | + |
| 15 | + /* |
10 | 16 | $('textarea').bind('keypress', function(e) { |
11 | 17 | console.log('keypress', e); |
12 | 18 | }); |
— | — | @@ -17,12 +23,12 @@ |
18 | 24 | $('textarea').bind('keyup', function(e) { |
19 | 25 | console.log($('textarea').val()); |
20 | 26 | }); |
| 27 | + */ |
21 | 28 | |
22 | 29 | } ); |
23 | 30 | </script> |
24 | 31 | </head> |
25 | 32 | <body> |
26 | | - <textarea></textarea> |
27 | | - |
| 33 | + <div style="width: 500px; height: 200px; border: solid 1px;" contenteditable="true">Lorem ipsum</div> |
28 | 34 | </body> |
29 | 35 | </html> |
\ No newline at end of file |