Suneditor: Anchor links within same page

Created on 8 Jan 2021  ·  14Comments  ·  Source: JiHong88/SunEditor

Hello,

Can we add anchor links to elements in same page?

Use case:
If a person is writing a long article, they will create a table of contents to link various sections of the article.

It can be done by using code view but it'd be helpful to non technical users if there's a gui to do it.

Thank you :)

feature

All 14 comments

@s-kris I will add it in the next version. :)

Thanks for your amazing work :)

The 2.35.0 version has been updated.
If this issue has not been resolved, please reopen this issue.
Thank you.

Thank you!!
Can I know when 2.3.5 changes will be pushed to suneditor-react?

@s-kris suneditor-react is not managed by me.
It will probably be updated sooner or later.

Ohh yeah noticed that later. I opened an issue.

@JiHong88 Can you please add a way in gui to insert #id_tag to element so that the linking in same page will be seamless?

@s-kris The bookmark option has already been added.
스크린샷 2021-03-11 오후 2 40 27

I noticed it @JiHong88. With this you can set the href="#abcd" link on action text.
But how to assign this id #abcd to the target element via gui?

When you click the bookmark button, "#" is added.
I don't understand the question.

Sorry, english isn't my native :)

So, there are two components to link within the page.

  1. We assign tag to an element with href="#some_id"
  2. Now, we should assign "some_id" to a different element in the same page for the internal linking to happen.

How do we deal with part 2 via gui in sun-editor?

@s-kris There is no such function.
I will add it in the next version.

@JiHong88 Thank you so much :)

The 2.37.0 version has been updated.
If this issue has not been resolved, please reopen this issue.
Thank you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chbin05 picture chbin05  ·  3Comments

guido-visser picture guido-visser  ·  3Comments

chagonzles picture chagonzles  ·  4Comments

redone80 picture redone80  ·  4Comments

David-Grass-Feria picture David-Grass-Feria  ·  6Comments