Moved initialization code from the PLTextDocument that was shared with the PLDocument up to its superclass.