imnapo / react-native-cn-quill

Quill rich-text editor for react-native
MIT License
185 stars 72 forks source link

In mobile, the cursor is not moving to the next line after pressing the enter key. #107

Open kishanGowda opened 1 year ago

kishanGowda commented 1 year ago

pressed the enter key on my phone, but the cursor did not move to the next line after completing the correct sentence or giving space; only the cursor moved to the next line. If I enter the enter key, is the sentence correct or not? The cursor needs to move for the next line. in this version (0.7.17).

SourabhKmrSingh commented 1 year ago

Did you find any solution to this i am also facing same issue

stump26 commented 1 month ago

I faced an issue where, in the compose state, pressing Enter would move to the previous line due to a bug in Quill. To solve this problem, I added the following configuration to the quill prop:

quill={{
  modules: {
    toolbar: false,
    keyboard: {
      bindings: {
        enter: {
          key: 13,
          handler: () => { setSelection() }
        }
      }
    },
  },
  placeholder: placeholder || 'Enter your content here.',
}}

This resolved the bug for me.