Fix pasting in code blocks in content editor
What does this MR do and why?
Fix pasting in code blocks in content editor
Now when you paste GFM in a markdown code block, it is pasted as GFM. And when you paste GFM in any other code block, it is pasted as plain text.
Changelog: fixed
Screenshots and steps
- Copy the following rich text content:
Some rich text content link
- Create a markdown code block in rich text editor by typing ```md. (Case 1)
- Create a plain text code block in rich text editor by typing ```. (Case 2)
- Paste
Case | Before | After |
---|---|---|
Markdown code block | ||
Plain text code block | ||
Copying and pasting a section of a code block in the same code block |
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.
Edited by Himanshu Kapoor