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

How to remove all the links in the document? #4809

Closed
Reinmar opened this issue Aug 22, 2017 · 7 comments
Closed

How to remove all the links in the document? #4809

Reinmar opened this issue Aug 22, 2017 · 7 comments
Labels
package:link resolution:expired This issue was closed due to lack of feedback. status:discussion status:stale type:feature This issue reports a feature request (an idea for a new functionality or a missing option).

Comments

@Reinmar
Copy link
Member

Reinmar commented Aug 22, 2017

Use case – you paste a content from some website and it contains numerous links. You want to get rid of all of them. How to do that at once?

#4751 removes the unlink button from the toolbar. This means that now you can't select all content and press the button.

https://github.com/ckeditor/ckeditor5-link/issues/31#issuecomment-316992952 considers adding a more useful link tooltip but it won't allow batch unlinking.

Perhaps we should think about solution such as proposed by @oleq in https://github.com/ckeditor/ckeditor5-link/issues/31#issuecomment-316992952.

@Reinmar Reinmar changed the title How to remove all the links in the document How to remove all the links in the document? Aug 22, 2017
Reinmar referenced this issue in ckeditor/ckeditor5-link Aug 22, 2017
Other: Removed the "Unlink" button. Closes #52.

See https://github.com/ckeditor/ckeditor5-link/issues/31#issuecomment-316992952 and https://github.com/ckeditor/ckeditor5-link/issues/149 for plans how unlinking will be exposed in the future.

BREAKING CHANGES: The `unlink'` UI component was removed from the component factory.
@fredck
Copy link
Contributor

fredck commented Aug 22, 2017

I've just checked GDocs and Medium. None of them have this feature as well.

I understand that we can picture a drastic use case for it, but I don't remember ever facing such issue and I was wondering if this is really critical.

@fredck
Copy link
Contributor

fredck commented Aug 22, 2017

Actually, I remember a case like this and I pasted without formatting, which worked well for me. So I assume users will figure something out.

Alternatively, for power users, we may consider adding a shortcut key for that scope, in the future, based on feedback.

@Reinmar
Copy link
Member Author

Reinmar commented Aug 22, 2017

Sure, I'm not claiming that this is something that happens every day. I don't recall ever doing this myself.

I just wanted to have this reported because we kinda introduced this situation by removing the unlink button.

@Reinmar
Copy link
Member Author

Reinmar commented May 28, 2018

I've just stumbled myself upon this. I linked the entire content (including a big table) and I realised that even I don't know how to fix that.

However, there's a way:

  1. Select the whole content that you want to clear.
  2. Press Ctrl+K.
  3. Create a link on it (any URL will do) or just submit the link URL form that was displayed.
  4. After submitting that link a link action balloon will be displayed and you can click the "Unlink" button there. All links will be removed.

It's an edge case still to have to deal with that many links, but we certainly have a problem here. And I can imagine that so many links can e.g. be inserted when pasting a content from some heavily styled website.

@oleq
Copy link
Member

oleq commented May 29, 2018

Alternatively, for power users, we may consider adding a shortcut key for that scope, in the future, based on feedback.

I second this along with #1014.

@mlewand mlewand transferred this issue from ckeditor/ckeditor5-link Oct 9, 2019
@mlewand mlewand added this to the unknown milestone Oct 9, 2019
@mlewand mlewand added status:discussion type:feature This issue reports a feature request (an idea for a new functionality or a missing option). package:link labels Oct 9, 2019
@pomek pomek removed this from the unknown milestone Feb 21, 2022
@CKEditorBot
Copy link
Collaborator

There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.

@CKEditorBot
Copy link
Collaborator

We've closed your issue due to inactivity over the last year. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it).

@CKEditorBot CKEditorBot added the resolution:expired This issue was closed due to lack of feedback. label Nov 2, 2023
@CKEditorBot CKEditorBot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:link resolution:expired This issue was closed due to lack of feedback. status:discussion status:stale type:feature This issue reports a feature request (an idea for a new functionality or a missing option).
Projects
None yet
Development

No branches or pull requests

6 participants