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

Generate id for heading and get heading text to set as the value of id -- Ckeditor5 #17808

Open
guosuqian opened this issue Jan 24, 2025 · 0 comments
Labels
type:question This issue asks a question (how to...).

Comments

@guosuqian
Copy link

guosuqian commented Jan 24, 2025

I am trying to generate heading id automatically in the editor instead of configuring all id manually for heading . I need to get the heading text to be the value of id attribute. But I have no idea about how to develop the plugin

(1) how can I get all heading element and get all heading text
(2) How can I set the id attribute to the all correspond heading element

Anyone who is able to give me a little start to get this to work?

version: "ckeditor5": "43.3.1",

@guosuqian guosuqian added the type:question This issue asks a question (how to...). label Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:question This issue asks a question (how to...).
Projects
None yet
Development

No branches or pull requests

1 participant