Skip to content

Add support for table alignment in RTE

Himanshu Kapoor requested to merge 435331-table-alignment-serializer into master

What does this MR do and why?

Add support for table alignment in RTE

Add support for aligning columns left, right and center in the rich text editor

Changelog: added

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screen Recording 2024-01-08 at 13.47.37.mov

Rendered markdown table:

image.png

How to set up and validate locally

  1. Create a new issue. Use rich text editor.
  2. Create a new table using the table icon in the toolbar.
  3. Add some text in the table like in the video above.
  4. Select a header cell, and click the dropdown icon on the top right of the header cell.
  5. Pick between any of the alignment options: Align left, Align center or Align right.
  6. Switch back to plain text to see what the rendered markdown looks like.

Note: Current alignment is not shown in the dropdown.

Related to #435331 (closed)

Edited by Himanshu Kapoor

Merge request reports