outline / rich-markdown-editor

The open source React and Prosemirror based markdown editor that powers Outline. Want to try it out? Create an account:
https://www.getoutline.com
BSD 3-Clause "New" or "Revised" License
2.87k stars 588 forks source link

Allow paste from Google Docs #483

Closed olehmell closed 3 years ago

olehmell commented 3 years ago

Discussed in https://github.com/outline/rich-markdown-editor/discussions/482

Originally posted by **olehmell** June 25, 2021 When I paste to ProseMirror all good: ![image](https://user-images.githubusercontent.com/39906111/123430832-4c4e1980-d5d1-11eb-9f8c-efb9cdbc1ed9.png) But when paste to rich-markdown-editor on my app, this looks like a plain text: ![image](https://user-images.githubusercontent.com/39906111/123431052-84edf300-d5d1-11eb-9001-29884b025266.png) Have any idea how I paste text from Google Docs with saving struct documents? Maybe I can write a custom handle for the HTML paste event?
tommoor commented 3 years ago

Apologies for late reply, classing this as a bug – it really should understand the html on the pasteboard.