feat(xpub-edit): add readonly prop to texteditor
This adds a readonly
prop to TextEditor
. (all lowercase for consistency with the rest of the code in xpub-edit
).
There seems to be a TextViewer
that is meant for this, but it has strange behaviour (it lets you position the cursor in the text even though you cannot edit it and if you try to write it just repositions the cursor to the beginning of the text).
It's worth mentioning that readonly
here works because the underlying Editor
component supports it, so I don't think it's out of place.