Start of TextEditorFragment. Requires a browser supporting CSS3 flexbox for decent layout.