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

Formatting preservation when pasting content to rich editor #991

Closed
dmgawel opened this issue Jan 8, 2018 · 5 comments
Closed

Formatting preservation when pasting content to rich editor #991

dmgawel opened this issue Jan 8, 2018 · 5 comments

Comments

@dmgawel
Copy link

dmgawel commented Jan 8, 2018

- Do you want to request a feature or report a bug?

It depends on the point of view :P But it's regression so I'd say: bug.

- What is the current behavior?

Since version 0.7 of CMS pasting formatted text from Dropbox Paper / Google Docs / Word / etc. to rich text editor ends up with clear, non-formatted text.

- If the current behavior is a bug, please provide the steps to reproduce.

Copy formatted text (headings, bold, italics, bullet points) from any editor mentioned above to Netlify CMS editor in rich mode.

- What is the expected behavior?

Formatting supported by markdown should be preserved (skipping any custom formatting - colors, fonts, etc.).

- Please mention your CMS, node.js, and operating system version.

Last known version of CMS that kept some formatting: 0.6.0

@erquhart
Copy link
Contributor

Yeah we definitely need to up our game there. You're right about it being a regression - one of the advantages of the old ProseMirror editor was better built in support for weird paste formats - but I'm going to call this an enhancement because we switched cores from ProseMirror to Slate, and Slate doesn't come with this out of the box.

@stale
Copy link

stale bot commented Oct 29, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the status: stale label Oct 29, 2019
@erezrokah
Copy link
Contributor

Closing as stale. Please re-open if having issues when pasting rich text (see #3727 for example)

@inwardmovement
Copy link

inwardmovement commented Oct 21, 2020

Pasting content from Google Docs still clear formats, for example using cms-demo.netlify.com:

Rich text copied from GDoc:

This is bold and this is italic.

When pasted into NetlifyCMS in rich text editor becomes:

This is bold and this is italic.

Will this be solved soon?

@erezrokah
Copy link
Contributor

Hi @inwardmovement, can you please open a new issue for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants