decaporg / decap-cms

A Git-based CMS for Static Site Generators
https://decapcms.org
MIT License
17.65k stars 1 forks source link

Formatting lost when copy-pasting from Google Docs to markdown widget #7233

Open robbymilo opened 2 weeks ago

robbymilo commented 2 weeks ago

Describe the bug

Formatting such as bold text, headings, links etc. are lost when copy pasting from a word processor such as Google Docs.

Here is the behavior from Netlify CMS 2.15.72:

https://github.com/decaporg/decap-cms/assets/8106669/eec07104-8d31-418e-9277-13bdcc62c472

To Reproduce

Copy formatted text from a word processor and paste it into a markdown widget with "Rich text" selected:

https://github.com/decaporg/decap-cms/assets/8106669/a995e244-576b-4429-8a43-34052fa081fe

Expected behavior

The formatting remains and is converted to markdown.

Screenshots

See recordings above.

Applicable Versions:

CMS configuration

n/a

Additional context

Happy to make an attempt with a PR to fix this if you can point me to the code :)