{typeof displayValue === 'function'
? displayValue(value, handleEdit)
: !value.length && emptyText
?
{emptyText}
: (
null : handleEdit}
dangerouslySetInnerHTML={{ __html: sanitaryTextReformat(value) }}
/>
)
}
{readOnly ? null : (
)}
);
}
}
export default SaveableTextEditor;
function onFocus(event: React.FocusEvent
) {
event.target.select();
}