Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content Blocks Editor Styles Bug #19051

Open
CodeDruid13 opened this issue Dec 14, 2023 · 3 comments
Open

Content Blocks Editor Styles Bug #19051

CodeDruid13 opened this issue Dec 14, 2023 · 3 comments
Assignees
Labels
issue: bug Issue reporting a bug severity: medium If it breaks the basic use of the product but can be worked around source: core:content-type-builder Source is core/content-type-builder package status: pending reproduction Waiting for free time to reproduce the issue, or more information version: 4 Issue related to v4

Comments

@CodeDruid13
Copy link

Bug report

Required System information

OS: win32-x64
Strapi Version: 4.15.5
Node/Yarn Version: yarn/1.22.19 npm/? node/v18.18.0 win32 x64
Edition: Community
Database: postgres

  • Is your project Javascript or Typescript: Typescript

Describe the bug

Content blocks editor does not allow copy and pasting with links and styles included. It removes the links and styles.

Steps to reproduce the behavior

  1. Add Content blocks editor.
  2. Copy and paste text from anywhere including links i.e word document.
  3. Link texts are removed.

Expected behavior

Keep links as is from copy pasted text.

Screenshots

Sample text
image

Content Blocks text
image

All styles and links has been removed. This is not an ideal setup compared to other editors that allow this functionality.

@reslear
Copy link

reslear commented Jan 31, 2024

maybe need integrate
https://www.slatejs.org/examples/paste-html

@Eventyret Eventyret added issue: bug Issue reporting a bug severity: medium If it breaks the basic use of the product but can be worked around source: core:content-type-builder Source is core/content-type-builder package status: pending reproduction Waiting for free time to reproduce the issue, or more information version: 4 Issue related to v4 labels Mar 14, 2024
@AndreasFaust
Copy link

AndreasFaust commented Apr 23, 2024

The same problem exists with formatting like italic and bold. Tested with Google Doc.
This issue is really severe, because it makes the block editor difficult to use for projects with a regular output of longer articles.

@AndreasFaust
Copy link

maybe need integrate https://www.slatejs.org/examples/paste-html

This would solve pasting from Rich Text, which would be a huge step forward.
Pasting directly from Google Doc does not work in this example, unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Issue reporting a bug severity: medium If it breaks the basic use of the product but can be worked around source: core:content-type-builder Source is core/content-type-builder package status: pending reproduction Waiting for free time to reproduce the issue, or more information version: 4 Issue related to v4
Projects
Status: To be reviewed (Open)
Status: To review
Development

No branches or pull requests

4 participants