contenteditable component for the Purescript UI framework Halogen.
SVGComponent uses the SVG foreignObject node to embed an editable text field into an SVG image. The foreignObject will automatically fit the content size, which I couldn't get working with just CSS.