polubis / Dream-stack-for-React-dev

https://dream-stack-for-react-dev.vercel.app
26 stars 5 forks source link

[Medium] After copying content to editor - press enter for user automatically #412

Open polubis opened 9 months ago

polubis commented 9 months ago

When editable mode is passed to Code component and ctrl + v is detected, the additional enter should be pressed for user without additional tab space.

Currently there is no enter, and after pressing an enter by user, the additional tab is added. Check codemirror 6 documentation, or ask ChatGTP (whatever) good for you, how to improve this behavior, maybe write own action as described in codemirror 6 documentation.

Definition of done

  1. There is no tab after pressing enter by user when Code component is editable.
  2. There is automatically enter added after pasting the content by user.