-
Notifications
You must be signed in to change notification settings - Fork 94
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
Replace MenuBubble with a menu bar entry for links #2665
Conversation
/compile |
2607929
to
c281b68
Compare
/compile |
3609458
to
43d90e1
Compare
59f8974
to
c9152bd
Compare
/compile amend |
c9152bd
to
4bc9040
Compare
Any feedback on this? :) |
Thank you, no problem :) |
63580fe
to
20617e7
Compare
20617e7
to
de550e8
Compare
de550e8
to
cbe4814
Compare
de15f59
to
ef480a7
Compare
This is currently blocked by #2842 |
637dbe6
to
0139e9d
Compare
Not blocked anymore, so read to go 😊 |
0139e9d
to
308e592
Compare
@susnux thanks a lot! Would you mind adding a few screenshots to make it easier for our design team to review? |
/compile amend |
Thank you for your feedback! Fixed the first points, I will have a look at the last one soon. |
0dec74f
to
c960274
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.
Tested it and it's working great. Code also looking good 👌 Again, thanks a lot @susnux.
// Avoid issues when parsing urls later on in markdown that might be entered in an invalid format (e.g. "mailto: example@example.com") | ||
const href = url.replaceAll(' ', '%20') | ||
const chain = this.$editor.chain() | ||
// Check if any text is selected, if not insert the lunk using the given text property |
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.
Minor typo 😉 s/lunk/link
/compile amend |
The updated anchor link cypress test fails though. Could you take a look @susnux? Afterwards good to go from my side 👍 |
c960274
to
4a9112c
Compare
all requested changes implemented
4a9112c
to
c605186
Compare
Should be fixed now, works locally waiting for CI to succeed :) |
/compile amend |
c605186
to
9754897
Compare
9754897
to
dea3102
Compare
/compile |
For some reason, the node build + porcelain check CI job always reports a diff 🙁 Will have to look into it next week. |
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
c2dd56c
to
69d4b5a
Compare
/compile |
f654e5c
to
e0aefed
Compare
/compile amend |
Signed-off-by: Jonas <jonas@freesources.org> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
e0aefed
to
3e1ffbd
Compare
Not sure if this can be backported to NC25, but would it be acceptable to backport at least the "link to folders" part? |
Usually we don't backport features to stable releases except if there's a strong reason to do so. |
Summary
This replaces the popover MenuBubble used for inserting links with a menu entry in the menu bar.
This also allows to add links also to directories, previously only files were allowed as link targets.
Added cypress tests as well. Testing inserting links to files, to directories,
and also inserting links while nothing is selected to test if the correct file name is used.
Some the menu order is slightly changed to prevent the link menu to get hidden, like for the callouts
Actions
must not get hidden in the submenu (nesting does not work for the menu).Another feature introduced with this change is the ability to insert links to files and automatically use
the filename as the link text.