Use Cordova/Phonegap to build an android app which contains the following simple html file index.html
<html>
<body>
<div contenteditable="true>
12<img src="1.jpg" />34<img src="2.jpg" />
</div>
</body>
</html>
Run this android apps using any android mobile phone, place the cursor at the end of the div(i.e. behind image 2.jpg), the soft keyboard will be opened automatically. Then, press the "BACKSPACE" button on the soft keyboard.
Expected Result: the image 2.jpg is removed.
Actual Result: the letter "4" is removed. AND, it is not possible to remove the 2 images inside the div.
If I run this simple html using any desktop browsers or any browsers in mobile phone, this result is as expected. The problem only appears when it is run inside a webview of an android apps.
I'm sorry that I created this new question; I asked an old one but no one response, may be my last question is too complicated, so I create this one which is easier to understand.