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

Can not insert text before Mention #3111

Open
susnux opened this issue Oct 1, 2022 · 4 comments
Open

Can not insert text before Mention #3111

susnux opened this issue Oct 1, 2022 · 4 comments

Comments

@susnux
Copy link
Contributor

susnux commented Oct 1, 2022

Describe the bug
The cursor can not move before a mention, so if the first thing inside a document is a user mention, then you can not add anything before it.

To Reproduce
Steps to reproduce the behavior:

  1. Open empty file
  2. Add a mention
  3. Try to add something in front of the mention

Expected behavior
Cursor can move before the mention.

Client details:

  • OS: Linux
  • Browser: Firefox
  • Version: master
  • Device: desktop
@susnux susnux added bug Something isn't working 1. to develop javascript ux labels Oct 1, 2022
@mejo-
Copy link
Member

mejo- commented Oct 1, 2022

There's actually other objects with the same issues. Out of my head I think that tables at the beginning of the document have the same problem.

@juliusknorr juliusknorr added this to the Nextcloud 25 milestone Oct 10, 2022
@mejo- mejo- added the high label Oct 10, 2022
@juliusknorr juliusknorr moved this to 📄 To do (~10 entries) in 📝 Office team Oct 17, 2022
@mejo- mejo- moved this from 📄 To do (~10 entries) to 🏗️ In progress in 📝 Office team Oct 17, 2022
@mejo- mejo- self-assigned this Oct 17, 2022
@mejo-
Copy link
Member

mejo- commented Oct 17, 2022

Seems like the problem only exists in Firefox. In Chromium, I can move the cursor in front of a user mention even if it's the first node inside the document. Also reproducible in the Tiptap example at https://tiptap.dev/api/nodes/mention

Likely it's because of the contenteditable: false attribute for the user bubble. When removing the attribute, I'm able to navigate in front of the user bubble. But certainly that's not what we want 😉

I opened ueberdosis/tiptap#3320 upstream.

@mejo-
Copy link
Member

mejo- commented Oct 22, 2022

I reported a bug against Firefox since this looks like a browser bug to me: https://bugzilla.mozilla.org/show_bug.cgi?id=1796943

@mejo- mejo- removed their assignment Oct 22, 2022
@mejo- mejo- moved this from 🏗️ In progress to 📄 To do (~10 entries) in 📝 Office team Oct 22, 2022
@blizzz blizzz modified the milestones: Nextcloud 26, Nextcloud 26.0.1 Mar 21, 2023
@juliusknorr juliusknorr moved this from 📄 To do (~10 entries) to 🛑 On hold in 📝 Office team Mar 25, 2023
@blizzz blizzz removed this from the Nextcloud 26.0.3 milestone Jun 22, 2023
@blizzz blizzz added this to the Nextcloud 26.0.4 milestone Jun 22, 2023
@arennertz
Copy link

arennertz commented Jun 27, 2023

I can confirm this Issue. A few details that i hope are helpful to you:

  • This happens on chrome version 114.0.5735.106 on macos v 10.15.7
  • collectives version 2.5.0, Nextcloud version 26.0.2
  • It happens in the middle of the document as well: if you create multiple tables directly after each other, there is no way to get text between them.
  • I see the cursor jump from in front of the table / behind the table into the first/last cell of the table. I attached screenshots, where i marked the behavior. Green is where the cursor should be, and where it is for a splitsecond. Red is where the cursor jumps to. This happens if you try to go get the cursor there by using the mouse or with the arrow keys.

Bildschirmfoto 2023-06-27 um 10 06 48
Bildschirmfoto 2023-06-27 um 10 06 59
Bildschirmfoto 2023-06-27 um 10 07 09
Bildschirmfoto 2023-06-27 um 10 07 24
Bildschirmfoto 2023-06-27 um 10 07 30
Bildschirmfoto 2023-06-27 um 10 06 41

@juliusknorr juliusknorr moved this from 🛑 On hold to 📄 To do (~10 entries) in 📝 Office team Jun 29, 2023
@juliusknorr juliusknorr removed this from the Nextcloud 26.0.4 milestone Jun 29, 2023
@mejo- mejo- moved this from 📄 To do (~10 entries) to 🧭 Planning evaluation (don't pick) in 📝 Office team Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🧭 Planning evaluation (don't pick)
Development

No branches or pull requests

5 participants