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

Is there a way to add anchor tags in ckeditor5? #8733

Closed
utkrist opened this issue Dec 30, 2020 · 9 comments
Closed

Is there a way to add anchor tags in ckeditor5? #8733

utkrist opened this issue Dec 30, 2020 · 9 comments
Labels
resolution:duplicate This issue is a duplicate of another issue and was merged into it.

Comments

@utkrist
Copy link

utkrist commented Dec 30, 2020

I would like the user to add anchor tag, from within WYSWYG editor in ckeditor5, such as
<a name="anchor_name> so that one can jump to the anchor location using the link as <a href="#anchor_name">.
I tried my best to find the answer but to no avail. Is there any plugin or tool that allows inserting the anchor tag?

@Reinmar
Copy link
Member

Reinmar commented Jan 4, 2021

No, there's no such feature yet. The feature request was already reported here: #1944.

@Reinmar Reinmar closed this as completed Jan 4, 2021
@Reinmar Reinmar added the resolution:duplicate This issue is a duplicate of another issue and was merged into it. label Jan 4, 2021
@jaspreetgill90
Copy link

Hi all,
This workaround might help you. And, I guess there is no need for this feature.

  1. Select the text and click in link icon
    an-1
  2. Click on Advanced to expand and add ID
    an-2
  3. Click on Green tick to make it done
  4. Select another text where you want to put link
    an-3
  5. Click on link and put Link URL starting with #
  6. an-4
  7. Click on Green tick to save

@Witoso
Copy link
Member

Witoso commented Oct 25, 2023

Hi @jaspreetgill90, it looks like a custom extension, could you link to it for community?

@iamThiagoo
Copy link

@jaspreetgill90 Could you share a link? This would help me a lot

@malagant
Copy link

I would be also interested in this extension, because in my installation there is no advanced Link section.

@iamThiagoo
Copy link

@malagant I found a way, try to use this package @northernco/ckeditor5-anchor-drupal in your CKEditor 5

@jaspreetgill90
Copy link

@jaspreetgill90 Could you share a link? This would help me a lot

I have this settings in ckeditor 5 text format
image

And this extension enabled.

@malagant
Copy link

So is this a Drupal specific thing?

@jaspreetgill90
Copy link

So is this a Drupal specific thing?

yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution:duplicate This issue is a duplicate of another issue and was merged into it.
Projects
None yet
Development

No branches or pull requests

6 participants