fixed bug for contenteditable fields in Firefox