Solved
How to add more heading options to the Paragraph Format dropdown for a content fragment?
Hi
I am trying to add more heading option for paragraph format in content fragment. Does anyone have any ideas about this?
Hi
I am trying to add more heading option for paragraph format in content fragment. Does anyone have any ideas about this?
Hi @rajkumarha1
I believe this is what you need to do: https://lhotsetechnologies.com/blog/enable-rte-plugins-for-content-fragment/
Once you have the StyledTextEditor.js file in your codebase, you can tweak it as you need. I believe for the paragraphs you need to find this section and modify it:
// EDIT 1 - Defining formats
"formats": {
"p": "Paragraph",
"h1": "Heading 1",
"h2": "Heading 2",
"h3": "Heading 3",
"h4": "Heading 4",
"h5": "Heading 5",
"h6": "Heading 6",
"blockquote": "Quote"
}
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.