- Home
- Forum
- ASP.NET Core - EJ 2
- Alignment issue
Alignment issue
Title: Paragraph under numbered heading not aligning with heading text in Syncfusion Document Editor
Hi Syncfusion Team,
I am using Syncfusion Document Editor to generate and display Word documents/templates.
I am facing an indentation issue during template generation.
The generated document sometimes renders like this inside the Syncfusion Document Editor:
1. CHAIRMAN
Austin Jesse Wang took the Chair of the Meeting.
2. QUORUM
It was noted that a quorum was present...
The problem is that the body paragraph under each numbered heading starts from the left margin / number column.
The expected output is:
1. CHAIRMAN
Austin Jesse Wang took the Chair of the Meeting.
2. QUORUM
It was noted that a quorum was present...
That means the body paragraph should start at the same x-position as the heading text, for example aligned with the first letter of CHAIRMAN, not aligned with the number 1..
In Word terms, the heading has numbering with hanging indent, but the paragraph immediately below it is not inheriting or applying the correct left indentation.
Expected behavior:
1. CHAIRMAN
Body paragraph aligned with heading text
Current behavior:
1. CHAIRMAN
Body paragraph starts at left margin
Could you please advise the correct way to define this formatting for Syncfusion Document Editor?
Specifically, I would like to know:
Should the body paragraph be given a specific
leftIndentvalue manually?Should it use the same paragraph style as the numbered heading, or a separate paragraph style?
Is there a recommended way to generate this structure so that Syncfusion Document Editor preserves the alignment correctly?
If I am generating DOCX/HTML before loading into Document Editor, which indentation properties should be set to avoid this issue?
The goal is:
Number remains at the left.
Heading text appears after the number.
Body paragraph below starts exactly aligned with the heading text.
Example:
1. CHAIRMAN
Austin Jesse Wang took the Chair of the Meeting.
Any sample code or recommended paragraph/list formatting configuration would be very helpful.
Thanks.
Hi Mathan,
To achieve your requirement, you need to apply a tab indentation to the paragraph immediately below the heading that has numbering.
Please follow the workflow below:
- Create a numbered list.
- Press Enter to generate the next numbered item.
- Press Backspace to remove the numbering for that line.
- Then press Tab to align the paragraph with the numbered heading.
Kindly refer to the attached video for a visual demonstration of the steps.
Additionally, documents created with proper numbering and indentation structures in Microsoft Word will be preserved correctly in the Document Editor. If you encounter any issues with such documents, please share the document along with detailed information about the problem.
Please try the above steps and let us know if you still have concerns. Also, provide
- A brief description of your requirement and use case
- The input document
- The expected output document
- Details about how you are creating the document.
These details will be helpful for us to investigate more on your issue and assist you with further details.
Regards,
Akshaya
Attachment: NumberedHeadingRecording_9ea6316.zip
- 1 Reply
- 2 Participants
-
MA Mathan
- Jun 26, 2026 06:28 AM UTC
- Jun 29, 2026 05:56 PM UTC