79778455

Date: 2025-09-29 18:58:02
Score: 1
Natty:
Report link

Maybe too late but hope this function works for you:

if (editorState.getCurrentContent()
      .getPlainText()
      .trim() === '') {
    // Clean the text area with simple empty ""
}

Why this works? Because even if the user breaks line with many white spaces and no text has been added, you can easily clean the variable when saving or before continue to the next component.

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Irving Kennedy