title: Visual Studio 2015 Community RC Cordova unable to delete image in contenteditable div
body: <p>To regenerate the problem:</p>
  
  <ol>
  <li><p>create a new Javascript Cordova project with Visual Studio 2015 Community RC or Visual Studio 2013 Community Update 4 with Tools for Apache Cordova CTP 3.1</p></li>
  <li><p>Replace the following code in index.html</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;script type="text/javascript"&gt;
          function funAddImage() {
              divTest.innerHTML += '&lt;img src="images/1.jpg" /&gt;'
          }
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div id="divTest" contenteditable="true"&gt;1234&lt;/div&gt;
      &lt;div&gt;
          &lt;input type="button" value="Add Image" onclick="funAddImage()"/&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre></li>
  <li><p>Add an image 1.jpg in images folder.</p></li>
  <li><p>Deploy the app in any android phone in debug mode or release mode with android version from 4.1.x to 4.4.x</p></li>
  <li><p>After the app run in the mobile phone, <strong>click "Add Image" button <em>TWO</em> times</strong>.</p></li>
  <li><p>Now move the cursor at the end of the last image and <strong>PRESS BACKSPACE in the softkeyboard <em>TWO TIMES</em>.</strong></p></li>
  </ol>
  
  <p><strong>Expected Result</strong>: The 2 images are removed.</p>
  
  <p><strong>Actual Result</strong>:</p>
  
  <p>Android 4.1.2 (Samsung Note 2) or 4.2.1 (A mobile phone with brand "ZOPO" made in China): <strong>Only the last image is removed, the first image cannot be removed no matter how many times the BACKSPACE is pressed</strong>.</p>
  
  <p>Android 4.4.2 (Samsung Note 3 or another mobile phone with brand "Nubia" made in China): The letter 4 is removed, then the letter 3 is removed.  <strong>Images CANNOT be removed by all means</strong>.</p>
  
  <p><strong>The purpose of this question</strong>:</p>
  
  <p>I want to develop an "Whatsapp" like chat app using VS 2015 Cordova, the message contains text and image, users should be able to edit the message before the message is sent.</p>
  
  <p>Now, with this strange behavior, users are not able to remove any images added, what should I do?</p>
  
  <p>PS: if I host the index.html in the IIS, and open the index.html in a PC desktop browser or any browser in the mobile phones mentioned above, the images can be removed as expected.</p>
  
  <p>This problem is really important, if it cannot be solved, it means that Visual Studio Cordova is not capable of developing any apps with rich text editor.  (Or is there any other INPUT type that I can use to replace the contenteditable div?)</p>