the simple final project

my simple final project
for training purposes, try writing this component as two separate components: a viewer and an editor.  Is the code cleaner that way or this way?   Sometimes its better to go with separate classes for viewing and editing and sometimes  its not.  The advantage of separating them out is that you can easily choose the best way to display the content for viewing without it being extra work and complexity.

Any class that has an instance variable that completely changes the behavior of the class (_editor) is a red-flag that the implementation design isn't optimal - from an object oriented design point of view.