Added support for contenteditable (e.g. <div contenteditable>)