suneditor icon indicating copy to clipboard operation
suneditor copied to clipboard

Styling issues with copy/paste from office apps

Open rocinante-sys opened this issue 1 year ago • 1 comments

Describe the bug A clear and concise description of what the bug is. There appears to be an issue with the parser from office apps. I tried to copy/paste some text from OneNote to Suneditor and there are styles missing as well as spaces.

To Reproduce Steps to reproduce the behavior:

  1. Go to OneNote and write text as seen here image

  2. Highlight the text and copy it to clipboard

  3. Go to suneditor and paste the text from clipboard

  4. Pasted text to SunEditor image

p.s. If I copy same text from word then pasted text is ok with the exception of paste word not being bolded. image

Expected behavior I expect to see the same text formatting as in the office application.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: chrome Version 115.0.5790.102 (Official Build) (64-bit)
  • suneditor version: 2.45.1
  • suneditor-react version: 3.6.1

rocinante-sys avatar Jul 27 '23 01:07 rocinante-sys

I was using the latest version 2.45.1 and when I copied tables with bold text it didn't paste it the same way. I had to roll back to version 2.44.1 which was the last version that did the pasting correctly.

image

orijmm avatar Oct 26 '23 15:10 orijmm