Skip to content

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

@robbymilo

Description

@robbymilo

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:

netlify-cms-copy-paste.mp4

To Reproduce

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

decap-copy-paste.mp4

Expected behavior

The formatting remains and is converted to markdown.

Screenshots

See recordings above.

Applicable Versions:

  • Decap CMS version:
    • decap-cms-app 3.1.10
    • decap-cms-core 3.3.6
  • Git provider: GitHub
  • OS: Linux
  • Browser version Firefox 125.0b6
  • Node.JS version: n/a

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugcode to address defects in shipped code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions