Universal Editor - text alignment not working | Community
Skip to main content
Level 2
January 22, 2026
Question

Universal Editor - text alignment not working

  • January 22, 2026
  • 1 reply
  • 38 views

In Universal Editor, when trying to align text in Rich Text field by using default alignment option (left, center, right), it only adds inline style. Upon saving changes and exiting out of RTE, all inline styles are removed.

I want to have per-paragraph alignment option within a rich text field so didn’t do this through custom model field. 

Any fix for this? Like adding a class instead of inline styling so this can actually work?

    1 reply

    Jineet_Vora
    Community Advisor and Adobe Champion
    Community Advisor and Adobe Champion
    January 23, 2026

    @parkpx - This will have to be debugged. How is the content getting saved in backend? Is it adding the right formatting in HTML when saved?

    parkpxAuthor
    Level 2
    January 23, 2026

    Behavior I’m seeing in Universal Editor while editing EDS content is,

    1. Open rich text editor.
    2. Highlight text paragraph and click alignment option, i.e., left, right.
    3. It adds inline styling: like <p style="text-align: right">...</p>
    4. When closing rich text editor, inline styling gets stripped out, so above example becomes <p>...</p>.

    I understand that expected behavior of EDS is to eliminate inline styling for governance, cleaner structure, etc., but it will cause confusion with authors. I’m also seeing similar behavior with indent, because it adds inline style of margins. 

    I think expected behavior should be:

    • Allow inline styling for alignment or margin that comes from RTE options.
      OR
    • Allow custom addition of class to option selections. For example, allow developers to add class of u-text-align-right so we don’t have to depend on inline styling only.