creating a more robust editor module for formatted editors