Hello, I have a little issue with generateHtmlFromNodes method.
const html = $generateHtmlFromNodes(editor, null);
Lexical version: 0.9.1
Steps To Reproduce
- In an editor I choose a paragraph and a right alignment and the result is:
<p dir="ltr" style="text-align: right;"><span>text</span></p>
- If I change the paragraph to a heading tag or a list item the result is:
<h1 class="text-2xl"><span>text</span></h1>.
The current behavior
As you can observe, the style attribute is missing for headings and lists.
The expected behavior
The style attribute should be set.
Thank you
Hello, I have a little issue with generateHtmlFromNodes method.
const html = $generateHtmlFromNodes(editor, null);
Lexical version: 0.9.1
Steps To Reproduce
<p dir="ltr" style="text-align: right;"><span>text</span></p><h1 class="text-2xl"><span>text</span></h1>.The current behavior
As you can observe, the style attribute is missing for headings and lists.
The expected behavior
The style attribute should be set.
Thank you