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

After HTML Parsing paragraph text alignment showing incorrect #290

Open
rapanchal-simpplr opened this issue Nov 12, 2024 · 0 comments
Open

Comments

@rapanchal-simpplr
Copy link

Before parsing HTML paragraph text has alignment right but after parsing it's not working, text is showing as left aligned. You can check below html for reference:

Before HTML:
<p indentation="0" textAlign="left" class="">Lorem ipsum dolor sit er elit lamet, consectetaur cillium adipisicing pecu, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Nam liber te conscient to factor tum poen legum odioque civiuda.</p><p indentation="0" textAlign="left" class=""></p><p indentation="0" textAlign="right" class="" style="text-align: right"><div class="tiptap-imageContainer"><div class="tiptap-blockLeft tiptap-clearWrapping"><div class="tiptap-imageWrapper" style="width: autopx"><img src="/sfc/servlet.shepherd/version/renditionDownload?rendition=ORIGINAL_Png&amp;versionId=068J4000005i0uWIAQ" title="b761018-3.png"></div></div></div>Normal text align right</p><p indentation="0" textAlign="right" class="" style="text-align: right"><div class="tiptap-imageContainer"><div class="tiptap-blockLeft tiptap-clearWrapping"><div class="tiptap-imageWrapper" style="width: autopx"><img src="/sfc/servlet.shepherd/version/renditionDownload?rendition=ORIGINAL_Png&amp;versionId=068J4000005i0vjIAA" title="200.gif"></div></div></div><strong>Bold text align right</strong></p>

After Parsing:
<p indentation="0" textalign="left" class="">Lorem ipsum dolor sit er elit lamet, consectetaur cillium adipisicing pecu, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Nam liber te conscient to factor tum poen legum odioque civiuda.</p>\n<p indentation="0" textalign="left" class=""></p>\n<p indentation="0" textalign="right" class="" style="text-align: right"></p>\n<div class="tiptap-imageContainer">\n <div class="tiptap-blockLeft tiptap-clearWrapping">\n <div class="tiptap-imageWrapper" style="width: autopx">\n <img src="" title="b761018-3.png" data-id="069J4000005ZTN9IAO" onClick="openInlineImage(\'\')" />\n </div>\n </div>\n</div>Normal text align right\n<p></p>\n<p indentation="0" textalign="right" class="" style="text-align: right"></p>\n<div class="tiptap-imageContainer">\n <div class="tiptap-blockLeft tiptap-clearWrapping">\n <div class="tiptap-imageWrapper" style="width: autopx">\n <img src="/sfc/servlet.shepherd/version/renditionDownload?rendition=ORIGINAL_Png&amp;versionId=068J4000005i0vjIAA" title="200.gif" onClick="openInlineImage(\'\')" />\n </div>\n </div>\n</div>\n<strong>Bold text align right</strong>\n<p></p>

Here, after parsing alignment for text "Bold text align right" is not working. It is showing as left aligned. Please help here to fix the issue or provide any solution/workaround to fix with existing APIs..

@rapanchal-simpplr rapanchal-simpplr changed the title After Parsed HTML Paragraph Text alignment showing incorrect After HTML Parsing paragraph text alignment showing incorrect Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant