added textInsertedEvent