Open
Description
Currently all those options only add classes chosen with theme, meaning that whenever I use the exported html in another place that doesn't have the class, the text will not be transformed.
Lexical version: 0.27.0
Steps To Reproduce
- Add text, set it to either one of capitalize, uppercase or lowercase.
- In "export dom" you can see the span class changes to the one in your theme, but there is no style.
Link to code example: https://playground.lexical.dev/
The current behavior
Applying capitalization, uppercase and lowercase only adds new class to the text span, however, it doesn't add any style to the span, meaning it will not work when class is not present.
The expected behavior
Applying those options should edit the style with appropriate text-transform to make the html portable without the need of custom classes.
Impact of fix
Everyone who exports to HTML and wants to use those options in their toolbar will benefit from it.