Refactored plain text and Midas handlers into splice()

Both HTML text controls and Midas have an nsIEditor.