text icon indicating copy to clipboard operation
text copied to clipboard

Enter does create a new line in text editor

Open gabriel-dina opened this issue 3 years ago • 7 comments

Steps to reproduce

  1. create a text file
  2. edit on iOS and place cursor at the middle of text
  3. press enter

Expected behaviour

A new line is inserted at the cursor position.

Actual behaviour

A new line is inserted at the begining of text...

gabriel-dina avatar Mar 09 '22 11:03 gabriel-dina

This seems like a duplicate of nextcloud/ios#1631 / nextcloud/text#1927 Can you confirm that the same is happening when opening the text editor with Safari on iOS?

thisIsTheFoxe avatar Mar 09 '22 11:03 thisIsTheFoxe

No, it's not the same, in fact I can edit the file without any issues, but not enter :)

However, I have more info:

The issue is reproducing only if the line terminator is LF, that means for files created on iOS or with Notepad the issue does not reproduce.

I've made a copy paste from browser to a text file, that's how I ended up here :)

Please consider as low prio.

gabriel-dina avatar Mar 09 '22 12:03 gabriel-dina

Thanks for the additional info, we'll keep that in mind. But I'm still unsure if this is an issue of the iOS app. Could you please try on your device using Safari? If the same thing happens there as well please transfer the issue over to nextcloud/text.

Also, if possible include example files were it works and where it doesn't. Thanks!

thisIsTheFoxe avatar Mar 10 '22 09:03 thisIsTheFoxe

You're right, the issue reproduce also in Safari but not in Edge for example.

gabriel-dina avatar Mar 10 '22 09:03 gabriel-dina

I don't know how to transfer this issue.. Maybe because is closed?

gabriel-dina avatar Mar 10 '22 09:03 gabriel-dina

That's ok thanks for letting us know! No problem, I'll move it. And the WebView we use in the iOS app uses Apple's WebKit (like Safari) so it's possible that other browser implementations handle things a little differently... :)

thisIsTheFoxe avatar Mar 10 '22 09:03 thisIsTheFoxe

I also encountered this problem after updating to 23.0.3 today. The problem is not iOS specific. It also occurs on my Samsung mobile using Chrome. Linux laptop with Chrome works fine.

snagglewest avatar Mar 22 '22 22:03 snagglewest

Could someone try again with the latest iOS or Android client? There has been some improvements. I remember that Tiptap (the editor we use) behaves differently depending on the user agent.

Feel free to reopen this if needed.

julien-nc avatar Oct 21 '22 10:10 julien-nc

I still have the same issue when editing a file with Bromit, a Chromium mobile browser on Android while everything is fine with Firefox. (NC 25.0.2)

TheNomad11 avatar Jan 04 '23 20:01 TheNomad11

I'm encountering this in chrome at this time, if i go to the last sentence and try to enter down, it does nothing. It works as long as its not at the bottom. Going to install Collabra.

arun2118 avatar Jan 06 '24 18:01 arun2118