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

Last post 10-20-2010, 9:48 AM by manciaux. 2 replies.
Sort Posts: Previous Next
  •  10-19-2010, 6:08 PM 64505

    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
  •  10-19-2010, 9:17 PM 64511 in reply to 64505

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

    Hi manciaux,
     
    This property is designed to limit the users to handle (edit/delete etc..) content.
     
    For now can not separate these two functions, sorry for your inconvenience.
     
    Regards,
     
    ken
     
  •  10-20-2010, 9:48 AM 64535 in reply to 64511

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

    I believe this must be a change in the latest release as we have been doing it this way for years without problem. Is that true. Do you have a recommended workaround?
View as RSS news feed in XML