Uh oh!
There was an error while loading. Please reload this page.
Link bubble menu to preview and edit links - #5158
Conversation
b18a08f to
251a713Comparejuliusknorr
commented
Dec 28, 2023
Looks very nice already. I stumbled over the following two issues that would be worth to check and address in the same run: |
232ae47 to
d1eda86Compare8956f31 to
448d69bCompare
max-nextcloud
left a comment
There was a problem hiding this comment.
The overall approach looks good to me. I added some minor comments but nothing blocking.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
5441d7a to
9d7dae3Compare
I'm not sure why this is not working. I can append a word to an italic text fine - and from the tiptap perspective they are both marks. update: looks like we inherit this behavior from both tiptap and prosemirror. |
juliusknorr
commented
Jan 29, 2024
The discussion about adding a description field should not block this PR imo, as it would be just another additional new feature. Maybe we can move that to an issue to discuss as a potential follow up. |
juliusknorr
commented
Jan 29, 2024
Just for reference, quoting prosemirror docs:
And tiptap seems to auto set that if autolink is enabeld |
Agreed with both that the link text can be edited in the popup, and that it can be a follow up PR :) This PR looks really great! Only some minor details for feedback:
|
mejo-
commented
Jan 29, 2024
The failing Cypress test in workspaces.spec.js is because in CI we have |
mejo-
commented
Jan 30, 2024
Thanks for your feedback @marcoambrosini and @nimishavijay.
Given that this would need to happen in the
Addin an "open link" button is a bit more technically involved. The link preview from |
dd31a6e to
3080ac3CompareSigned-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
This option is not used anyway. We always use the Link extension. Signed-off-by: Jonas <jonas@freesources.org>
New link click behaviour: * Link left clicks without Ctrl/Meta open link bubble (Fixes: #3691) * Link left clicks with Ctrl/Meta open link in new tab * Link middle clicks open link in new tab * Link middle clicks on Linux don't paste content (Fixes: #2198) * No more custom open link handler in editor Implementation details: * Moved link click handler plugins back into Link mark class. * Added 'data-md-href' attribute to a-elements in DOM, to be used in onClick handlers. Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
We no longer allow custom link click handlers in Text. Instead, the reference widgets for link previews have to implement their own click handlers. Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
* Clicking outside the bubble always hides it * Clicking inside the bubble never hides it Signed-off-by: Jonas <jonas@freesources.org>
…rectly Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Should allow Cypress to click on it before blur event happens. Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
3080ac3 to
b73181aComparemarcoambrosini
commented
Jan 30, 2024
I think that there's no need for such button because there's a link element just below it |
📝 Summary
Opens a link bubble when clicking on a link and removes in-document link previews.
#) don't open a link bubble but navigate to the anchor directly.target="_blank".🖼️ Screenshots
🚧 TODO
!isLoggedIn🏁 Checklist
npm run lint/npm run stylelint/composer run cs:check)