Serialize image attributes for content editor
What does this MR do and why?
When image width/height is specified, allow content editor maintain and serialize back to image attributes, such as {width="100%"}
Related to #384717 (closed)
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
-
Go to wiki and create a new page
-
Go to the Source tab and enter:
![](https://about.gitlab.com/images/press/logo/png/gitlab-logo-500.png){width="100"}
-
Go to the Rich Text tab, you should see
-
Click at the end of the image and enter
plus some text
-
Go to the Source tab, you should see
![](https://about.gitlab.com/images/press/logo/png/gitlab-logo-500.png){width="100"} plus some text
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.