r110639 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r110638‎ | r110639 | r110640 >
Date:00:59, 3 February 2012
Author:inez
Status:deferred
Tags:visualeditor 
Comment:
Playground for IME (switch from textarea to contenteditable div)
Modified paths:
  • /trunk/extensions/VisualEditor/contentEditable/ime.html (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/contentEditable/ime.html
@@ -4,8 +4,14 @@
55 <script src="../modules/jquery/jquery.js"></script>
66 <script>
77 $( function() {
8 - console.log("start");
 8+ //console.log("start");
99
 10+ $(document).bind('DOMCharacterDataModified', function(e) {
 11+ //console.log('DOMCharacterDataModified', e);
 12+ //console.log($('div').html());
 13+ });
 14+
 15+ /*
1016 $('textarea').bind('keypress', function(e) {
1117 console.log('keypress', e);
1218 });
@@ -17,12 +23,12 @@
1824 $('textarea').bind('keyup', function(e) {
1925 console.log($('textarea').val());
2026 });
 27+ */
2128
2229 } );
2330 </script>
2431 </head>
2532 <body>
26 - <textarea></textarea>
27 -
 33+ <div style="width: 500px; height: 200px; border: solid 1px;" contenteditable="true">Lorem ipsum</div>
2834 </body>
2935 </html>
\ No newline at end of file

Status & tagging log