Fixes #17453.  Check for redOnly before formatting the text value for editing.