Skip to content

Adding id attribute to text or headings #174

Answered by i-just
thomascoppein asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, thanks for reaching out! You could use the anchors plugin to add anchor links to selected heading levels.

Adding custom IDs or other attributes directly in CKEditor is not currently supported: ckeditor/ckeditor5#7369, but someone has created a plugin that adds the ability to add an id attribute: https://github.com/rhysstubbs/ckeditor5-add-attribute-to-element. You could use that as a starting point to create your own or pull in this one yourself.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by thomascoppein
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #173 on February 22, 2024 00:05.