Skip to content

Rich Text Editor: Add Smart List Exit Behavior

When users are working with unordered lists in the Rich Text Editor, they currently cannot easily break out of the list to start a new paragraph. The editor continues to create new bullet points even when users intend to exit the list structure.

Current Behavior

  • The editor continues creating new bullet points indefinitely
  • Users have no intuitive way to exit list mode
  • Empty bullet points persist even when users likely intend to start a new paragraph

Expected Behavior

  • After creating two consecutive empty bullet points, the editor should:
    • Remove the last empty bullet point
    • Exit list mode
    • Allow the user to begin typing in a new paragraph
  • This behavior should mirror other popular Rich Text Editors like Slack's implementation

User Impact

This improvement would:

  • Reduce user frustration
  • Speed up content creation
  • Match users' mental models from other common editing tools
  • Eliminate the need for workarounds to exit list mode

Example provided by @jmandell

Current Expected
CleanShot 2025-01-31 at 09.59.15.gif CleanShot 2025-01-31 at 10.02.38.gif
Edited by 🤖 GitLab Bot 🤖