Closed Reinmar closed 5 years ago
I have rechecked (validated some time ago in https://github.com/ckeditor/ckeditor5/issues/1184#issuecomment-409828069) how pasting from GDocs works with the document formatted like:
There are basically 3 things broken (comparing to what is supported when pasting from Word):
<b>
tag interpreted by editor as bold). Broken on Chrome and Safari, works on Firefox (no <b>
wrapper).ul > li > p
markup.So to align it with what is supported now when pasting from Word, solving 1 and 2 should do the job.
The issue with block content inside lists is more general one, related to any pasted or set content inside editor - https://github.com/ckeditor/ckeditor5/issues/1318.
Images in tables are not pasted correctly but AFAIR this is not supported by the editor itself.
As for now no images in table.
So to align it with what is supported now when pasting from Word, solving 1 and 2 should do the job.
Fixing 1. and 2. would be cool.
@jodator as we discussed I create a discussion topic for the normalizers: ckeditor/ckeditor5#2497.
Could we have a list here of things which work fine already and a list of tickets for things which don't work yet? Because it'd be good to close this ticket with some sort of summary.
List are broken due to ul > li > p markup.
I came across something similar while pasting indented lists from Gmail. The indented content is not pasted at all. Would that come under the scope of this issue or does it require a new one?
@atullasrado - this will be probably fixed by: https://github.com/ckeditor/ckeditor5-list/issues/115. We're hoping to finish this in the current iteration by it might get delayed.
I'll check the Gmail case there.
Those are my findings. I used this document for testing purpose. @Mgsy if you found something else during your testing of PfGD, then please add it to the list.
Sum up of paste from Google Docs support with features which I was able to match with CKE5 features:
<h1>
and <h2>
are recognized as Heading1. More details ckeditor/ckeditor5#2503transparent
color on the document colors list. It might be useful to remove it during paste.All right, I have updated this issue to list all the basic features that we wanted to include in this release. Now the most important remaining thing is bold support, which has been extracted to ckeditor/ckeditor5-paste-from-office#74 and will be fixed in future release.
Is this a bug report or feature request?
🆕 Feature request
💻 Version of CKEditor
CKEditor v5 @ 12.3.1
📋 Steps to reproduce
Like MS Word, Google Docs also produces some non-semantical markup which needs to be normalized before being inserted into CKEditor 5.
With this feature we want to introduce infrastructure to support Google Docs pasting (normalizers API) and a handful of converters, such as:
If you'd like to see this feature implemented, add 👍 to this post.