Fixed a bug in event firing

When the user writes on a contenteditable div, the event was firing. An exception for contenteditable div's has been added.