Split equals to equalsContent and equalsSelection.
Fix logical bugs.
Fire change event. Rewrite type method with full character array.