decaporg / decaporg/decap-cms

Can't copy and paste into Rich Text

Open
#7,802 0 comments 0 reactions 0 assignees View on GitHub
area: extensions/widgets/richtext type: bug
Dominant language
JavaScript
Stars
19.4k
Forks
3.1k
Avg merge
1d 14h
Merged PRs (30d)
9

Description

**Describe the bug**
When I copy and paste from Google Docs into the Rich Text Body Field:

1. The backspace and delete keys do not work
2. The preview field remains empty
3. The styling is stripped
4. When I try to save, I get an error message saying the body is empty

**To Reproduce**
Paste copied text into the body field (Rich Text)

**Expected behavior**
Text should operate normally

**Applicable Versions:**

- Decap CMS version: 3.12.2
- Git provider: Github
- OS: Sequoia 15.7.4
- Browser version Chrome 147.0.7727.138
- Node.JS version: 11.6.2

**CMS configuration**
site_url: https://www.bluecanarywebdesign.com
display_url: https://www.bluecanarywebdesign.com
publish_mode: editorial_workflow

# Enable local development without GitHub OAuth.
local_backend: true

backend:
name: github
repo: paulnicholsen27/blue-canary-cs
branch: production
api_root: https://api.github.com
base_url: https://www.bluecanarywebdesign.com
auth_endpoint: /.netlify/functions/oauth

media_folder: "assets/images/uploads"
public_folder: "/assets/images/uploads"

collections:
- name: "posts"
label: "Blog Posts"
folder: "content/posts"
create: true
slug: "{{slug}}"
extension: "md"
format: "frontmatter"
fields:
- { label: "Title", name: "title", widget: "string" }
- { label: "Description", name: "description", widget: "string", required: false }
- { label: "Share Image", name: "shareImage", widget: "image", required: false }
- { label: "Publish Date", name: "date", widget: "datetime", date_format: "YYYY-MM-DD", time_format: false }
- { label: "Tags", name: "tags", widget: "list", required: false }
- { label: "Body", name: "body", widget: "markdown" }

**Additional context**
Seems related to https://github.com/decaporg/decap-cms/issues/7233 which is already marked as closed

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.