contenteditable elements can't be deleted with delete key in Internet Explorer

  •  10-19-2010, 6:08 PM

    contenteditable elements can't be deleted with delete key in Internet Explorer

    1) Go to your demo page,
    2) delete all the content,
    3) click the html tab
    4) paste the following content:
    <div>top
    <div style="border-bottom: red 1px solid; border-left: red 1px solid; border-top: red 1px solid; border-right: red 1px solid" contenteditable="false">this is not editable </div>
    bottom </div>
    5) go back to the editor page
    6) select all of the content (or any fraction surrounding the uneditable div)
    7) Try to delete using the delete key - it won't delete any selection that contains an element with contenteditable=false (this is not the standard behavior for a contenteditable div)
     
    The ability to delete these elements is critical in our application. We use contenteditable=false for tokens that the user can add or delete but not edit
     
    Can you help?
     
    Mike
View Complete Thread