Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enter does create a new line in text editor #2230

Closed
gabriel-joy opened this issue Mar 9, 2022 · 10 comments
Closed

Enter does create a new line in text editor #2230

gabriel-joy opened this issue Mar 9, 2022 · 10 comments
Labels
0. Needs triage bug Something isn't working mobile

Comments

@gabriel-joy
Copy link

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...

@thisIsTheFoxe
Copy link

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

@gabriel-joy
Copy link
Author

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.

@thisIsTheFoxe
Copy link

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!

@gabriel-joy
Copy link
Author

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

@gabriel-joy
Copy link
Author

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

@thisIsTheFoxe
Copy link

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 thisIsTheFoxe reopened this Mar 10, 2022
@thisIsTheFoxe thisIsTheFoxe transferred this issue from nextcloud/ios Mar 10, 2022
@snagglewest
Copy link

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.

@julien-nc
Copy link
Member

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.

@TheNomad11
Copy link

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)

@arun2118
Copy link

arun2118 commented Jan 6, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage bug Something isn't working mobile
Projects
None yet
Development

No branches or pull requests

8 participants