traceback in eclipse script

Inside onTextInserted we need to check if the event.source is text area
before try to get characterCount.
Use the same logic used in soffice to ignore duplicated caret movements