-
Notifications
You must be signed in to change notification settings - Fork 432
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
Copy/paste from Google Docs messed up formatting #1437
Comments
Hi @JON418, and thanks for your bug report! What platform and browser are you on? And what version of the studio? |
Hi @kmelve ! I'm on Windows 10, having the issue on both Google Chrome and Firefox, Studio v0.141.6 Console doesn't fire any errors or warning upon the paste event. I'm planning to update the Studio, and maybe scaffold a new project to see if it might be environment related or not. Will keep you posted. |
Updated studio to v0.142.0, same issue. Tried pasting from Microsoft Word .docx file and it works fine, if that is of any help. |
@kmelve Update : just tested on a Mac and it worked almost perfectly! Bold, italic and lists worked as expected, but the underline and strikethrough did not. So, left aside the underline and strikethrough not working, which seems to be another issue, the initial issue seems to be Windows related. |
Thanks for investigating! It seems to be some cross-platform incompatibilities. We have made an effort to have paste-with-formatting work at least for HTML, Word, and Google Docs, so I've added this as a bug in our internal tracking. Stay tuned! |
This happens because you have added {list-style-position: inside} for your ol or ul or li tags. Either you can remove that or. The structure of bulletted list from google docs when pasted will be like:
If you could convert this p tag to span. It will be aligned. var newElement = document.createElement('div')
} } |
We're continuing to improve the paste handling from various sources, but a lot has changed since 2019 - let us know if you're still seeing things that needs to be improved :) |
This seems to be wonky still, unless I'm missing something? From a
|
Barebone block editor. I tested a lot of scenarios, all lead to this :
====================================
====================================
The text was updated successfully, but these errors were encountered: