I am trying to write a validator that will check to see if the value is "<p></p>↵"... and if it is, display the required message. However, I can't seem to target the ↵ no matter what I try. I've tried to use trim() as well, but haven't had any luck.
export const isRichTextImageEditorRequired = (value) => value &&
(!/(\r\n|\n|\r)/.test(value) || isEmpty(value)) ?
'This field is required' : undefined;