Testing WYSIWYG text editor.  Light refactoring.