froala / wysiwyg-editor

The next generation Javascript WYSIWYG HTML Editor.
https://www.froala.com/wysiwyg-editor
Other
5.3k stars 673 forks source link

word paste issue (content with h1 title and image, image not upload in windows, chrome) #3177

Open eyewire opened 5 years ago

eyewire commented 5 years ago
Expected behavior.

Word paste contents with header and images, the images can be uploaded and show in windows chrome.

Actual behavior.

when paste contents from Word into editor, which includes word format header(h1 or h2...) and image, the image cannot be uploaded and show, open chrome console and find out that the image upload request not sent at all, and when I only paste a image into editor, it can be uploaded properly, so that the imageUploadUrl is ok.

Steps to reproduce the problem.

paste contents from Word into editor, which includes header(h1 or h2 or h3...) and image, image upload cannot be triggered and inserted then. there is the example word file below: editor paste.docx

OS.

windows

Browser.

chrome 70.0.3538.102 (32bit)

stefanneculai commented 5 years ago

The editor is actually keeping the heading - see the attached image.

screenshot 2018-11-22 at 18 03 14
eyewire commented 5 years ago

I try it again on my windows chrome , and it cannot work as yours. there is the result in froala editor website example: image

eyewire commented 5 years ago

The editor is actually keeping the heading - see the attached image.

screenshot 2018-11-22 at 18 03 14

I try it again on my windows chrome , and it cannot work as yours. there is the result in froala editor website example: image

stefanneculai commented 5 years ago

@eyewire could you send us a screenshot of the code in Code View mode?

eyewire commented 5 years ago

@eyewire could you send us a screenshot of the code in Code View mode?

this is the code when paste my word text: image

image

stefanneculai commented 5 years ago

In the code that you sent, I can see that there is an H2 tag which is the correct behavior. It is not displaying as a heading because it has inline style which comes from Word: font-size.

eyewire commented 5 years ago

In the code that you sent, I can see that there is an H2 tag which is the correct behavior. It is not displaying as a heading because it has inline style which comes from Word: font-size.

but why the image cannot uploaded? why the word font-size can stop the image upload? please fix it asap~ thanks

stefanneculai commented 5 years ago

I am reopening this so that we can check the image upload again. Do you think you could also send us a recording?

eyewire commented 5 years ago

I am reopening this so that we can check the image upload again. Do you think you could also send us a recording?

ok,here is a video link, which is recording this case on my computer. please check it and find out problems and fix it, we have a lot of users need to use your editor to paste word on our website, thanks.

http://crowdtest-online.bj.bcebos.com/20181204_133205.mp4