WIP
Use textContent
Merge branch 'master' of https://github.com/andreasgal/j2me.js into text_editor_emoticons
Merge branch 'master' of https://github.com/andreasgal/j2me.js into text_editor_emoticons
WIP implementation of getCaret and setCaret for the content-editable div
Fix getCaret and setCaret for TextEditors that contain both text and images
Replace Emoji unicode ranges with a temp image
Don't use content.length because it counts one code point as two characters
Implement codepoint-aware getSlice
Set overflow:auto to render scrollbars
Add toCodePointArray function to util.js
Fix TextEditor::delete, TextEditor::insert and TextEditor::setCaret
Fix TextEditor test
Add MIDlet to test TextEditor
Add Emoji test
Throw IllegalArgumentException in TextEditor::insert 'if the insertion would exceed the current maximum capacity'
Prevent insertion of new characters with the keyboard when we've reached the maximum capacity
Handle backspace and carriage return in keydown handler
Implement TextEditor::getFont and TextEditor::setFont
Support backspace when multiple characters are selected