-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Paste from Google docs #835
Comments
There is an old issue on our tracker for this (I've updated this ticket to include the reference). |
We need to check what's produced by gdocs, if it's putting some garbage markup (don't have the time to check the history now) then this is a feature request rather than bug. |
Unfortunately Google produces some garbage markup. :( Safari:
Chrome:
Firefox - no visible problems (there is no
Edge 15
IE11
|
So that makes it a feature request, I'll update report accordingly. Now the question is if we filter out this garbage outer bold, does it fix pasting? |
When adding handling for gdocs, I believe we should do it in a dedicated plugin. I can see that it would be beneficial, so I'm for putting it in full and standard preset by default. |
Yes, it fixes it. The partial solution is available in https://github.com/cksource/ckeditor-dev/tree/t/13877 – it could be a good base for the new, dedicated plugin. |
Yep it fixes it. From curiosity I added some bold to text to check how it behave in such case, google add style |
wondering if there's already a dedicated plugin for this? how would i solve this without switching to the specific branch? |
Any movement on this? It's such a hassle :( |
@LiamDawe just sharing my solution, I ended up using the plugin from here: https://ckeditor.com/cke4/addon/pasteFromGoogleDoc, where I believe they extract the code and moved it to a plugin. |
Thanks, that does seem to make it a little more bearable. |
In fact, sadly, that plugin seems to mess with others. In particular, it seems to stop the Youtube plugin from loading somehow? |
I don't understand how this is a feature request. Pasting from Google Docs in the most popular browser is broken. This should be a bug. |
It is not working with ckeditor version "4.11.1". |
Reproduced. This is probably caused by Google Docs' weird markup but … it is a very widely used text editor, and it is very often where collaboration happens prior to content being moved into a CMS. It seems that the simplicity of the fix plus the far-reaching impact together should make this a high priority? In any case, it is marked as a major bug in Drupal 8, and we rely on CKEditor to fix it: https://www.drupal.org/project/drupal/issues/2948171 |
Paste from Google docs support is targeted for the next The fix for bold is rather easy, but still there is more markup which needs explicit support and proper transformations. Additionally, we are doing a significant refactor to reuse some common content filters introduced for pasting from Word. |
Confirm that the issue still exists. @f1ames thanks for the update and all your work. |
@f1ames glad to know it's really being looked into, we use it for article/review/interview collaboration and then pasting it into CKEditor only causes frustration. When you say the next "major" release, I assume we're still talking CKEditor 4 right? |
@LiamDawe, yes it will be CKEditor 4 |
I think this is a really bad bug. |
Use the pasteFromGoogleDoc plugin mentioned above for the moment. That's what I do and working fine. |
We are aware of the importance of the issue and already working on it. Take a look at #3257 for more information. |
@mechanicals: CKEditor 4.13 is scheduled for the end of September. You can see the milestone here: https://github.com/ckeditor/ckeditor-dev/milestone/23 Sorry about any inconvenience caused - we're doing our best to have a proper solution for all Google Docs pasting issues. |
Are you reporting a feature request or a bug?
New feature
Check if the issue is already reported
https://dev.ckeditor.com/ticket/13877
Provide detailed reproduction steps (if any)
Expected result
The content is pasted with formatting resembling the original
Actual result
The content is entirely bold
Other details
The text was updated successfully, but these errors were encountered: