-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Paste from Google Docs #393
Comments
This is an issue you should probably handle yourself, it seems out of scope for this kind of a library to handle the nuances of Google Docs' clipboard handling. If you look at the clipboard content coming from Google Docs (set a breakpoint inside of a |
why would it do that… @_@ |
¯_(ツ)_/¯ not sure why the wrapping in a |
Thanks @aem, I wasn't sure what was happening, I'm having a look at the solution you're suggesting. |
As followup, today I open-sourced the solution that I built internally. Doesn't cover all cases, but should be enough to get started. Contributions welcome :) |
This worked for me
|
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
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
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
I'm addressing a particular use case where I should paste content copied from a generic Google Docs document.
So far, on a Mac with OS X 10.11 with Chrome 50 whenever I try to do so, somehow the whole document get styled 'BOLD'.
If I try to do the same, but going through the "Notes" app (copy > paste > copy > paste), then the content looks alright.
I'm not sure where I should look at while trying to address such issue, any idea?
The text was updated successfully, but these errors were encountered: