Do not remove indentation when pasting in code block
What does this MR do and why?
Do not remove indentation when pasting in code block
In rich text editor, when pasting in a code block, do not remove all indentation. It should only be removed when pasting raw text.
Changelog: fixed
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
Before | After |
---|---|
Screen Recording 2024-02-05 at 16.52.47.mov | Screen Recording 2024-02-05 at 16.51.36.mov |
How to set up and validate locally
- Follow the steps to reproduce in the original issue.
- The indentation should not be stripped in code blocks anymore.
Related to #437767 (closed)