-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Text always bold when pasted from Docs #2462
Comments
Is there any workaround for this? I'm having problems with this issue. |
I got it, here is what I did:
|
Does anybody have any update on this? I am still facing this issue in Firefox. Even on disabling formatting of pasted text, the content is bold. Can see the |
It's the same issue ProseMirror had in 2016 (since fixed): For some reason, Google Docs uses a "<b style="font-weight:normal id="..."> wrapper around documents, which Firefox naturally interprets as bold. Haven't yet tried the fix by @edhowler but it looks like it would work. |
So I'm able to remove the bolding when pasting from Google Docs into Firefox with a simple matcher like this:
Unfortunately, it also removes the formatting from any intentionally bolded text. I don't understand the matchers & deltas well enough to know how to preserve that formatting, but maybe someone else here does...? |
fix #365 [Editor] - Texts become bold when copy and paste from Google doc References: - facebookarchive/draft-js#393 (comment) - https://github.com/superdesk/superdesk-client-core/blob/develop/scripts/core/editor3/html/from-html/index.ts#L60 - slab/quill#2462 has some dirty fix with side effects - ProseMirror/prosemirror#459 (comment) this fix mentioned ProseMirror/prosemirror-schema-basic@cbbdc1a691 in ProseMirror looks much cleaner
fix #365 [Editor] - Texts become bold when copy and paste from Google doc References: - facebookarchive/draft-js#393 (comment) - https://github.com/superdesk/superdesk-client-core/blob/develop/scripts/core/editor3/html/from-html/index.ts#L60 - slab/quill#2462 has some dirty fix with side effects - ProseMirror/prosemirror#459 (comment) this fix mentioned ProseMirror/prosemirror-schema-basic@cbbdc1a691 in ProseMirror looks much cleaner
fix #365 [Editor] - Texts become bold when copy and paste from Google doc References: - facebookarchive/draft-js#393 (comment) - [Superdesk CMS is using DraftJS](https://github.com/superdesk/superdesk-client-core/blob/develop/scripts/core/editor3/html/from-html/index.ts#L60) and internally calling docsSoap to resolve this - slab/quill#2462 has some dirty fix with side effects - ProseMirror/prosemirror#459 (comment) this fix mentioned ProseMirror/prosemirror-schema-basic@cbbdc1a691 in ProseMirror looks much cleaner
fix #365 [Editor] - Texts become bold when copy and paste from Google doc References: - facebookarchive/draft-js#393 (comment) - [Superdesk CMS is using DraftJS](https://github.com/superdesk/superdesk-client-core/blob/develop/scripts/core/editor3/html/from-html/index.ts#L60) and internally calling docsSoap to resolve this - slab/quill#2462 has some dirty fix with side effects - ProseMirror/prosemirror#459 (comment) this fix mentioned ProseMirror/prosemirror-schema-basic@cbbdc1a691 in ProseMirror looks much cleaner
fix #365 [Editor] - Texts become bold when copy and paste from Google doc References: - facebookarchive/draft-js#393 (comment) - [Superdesk CMS is using DraftJS](https://github.com/superdesk/superdesk-client-core/blob/develop/scripts/core/editor3/html/from-html/index.ts#L60) and internally calling docsSoap to resolve this - slab/quill#2462 has some dirty fix with side effects - ProseMirror/prosemirror#459 (comment) this fix mentioned ProseMirror/prosemirror-schema-basic@cbbdc1a691 in ProseMirror looks much cleaner
fix #365 [Editor] - Texts become bold when copy and paste from Google doc References: - facebookarchive/draft-js#393 (comment) - [Superdesk CMS is using DraftJS](https://github.com/superdesk/superdesk-client-core/blob/develop/scripts/core/editor3/html/from-html/index.ts#L60) and internally calling docsSoap to resolve this - slab/quill#2462 has some dirty fix with side effects - ProseMirror/prosemirror#459 (comment) this fix mentioned ProseMirror/prosemirror-schema-basic@cbbdc1a691 in ProseMirror looks much cleaner
Text always bold when pasted from Docs, including pasting table data.
Steps for Reproduction
Expected behavior:
Maintained formatting text is pasted
Actual behavior:
Bold text is pasted
Platforms:
Everywhere that I tested
Version:
2.0.0-dev.3
The text was updated successfully, but these errors were encountered: