-
Notifications
You must be signed in to change notification settings - Fork 91
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
Fix/hide bubble when in menu #5529
Conversation
43aedac
to
6fe12c9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really nice work 🤩
I went through all the commits and think I followed most of the code changes. Lots of nice refactoring and cleanups in there!
I also did some manual testing around the link bubble and everything seems work reliable there. Just one nitpicking comment.
Not sure whether the failing Cypress test "Link website with selection" from |
It probably is. I think the link happens in the I'm tending to make the selection handling more inclusive - that is also show the link bubble when the cursor is in front of the link or behind the link as these cursor positions can be reached by clicking the link. |
d068db7
to
dcb7dc6
Compare
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
It is a prosemirror plugin view. No need for it to know tiptap data structures Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Also rename `clicked` state to `active`. We will also use it for activating via keypress Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
In appendTransation callbacks there is no view available. Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
The `handleKeyDown` prop does not work in read only mode. Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
The link bubble now also gets rendered when the cursor is behind the link. `cy.get` will always start at the root of the doc. So it also found the link inside the link bubble. Use `.find` on the content instead as the link bubble is outside of that. Signed-off-by: Max <max@nextcloud.com>
dcb7dc6
to
fb0a8ce
Compare
📝 Summary
See: Link preview follow up #5442
Move the event handling into the LinkBubble plugin and expose a command to hide the link bubble.
Make use of that command to hide the link bubble when opening the preview menu.
🏁 Checklist
npm run lint
/npm run stylelint
/composer run cs:check
)