This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Paste from Microsoft Word #729
Comments
The problem is that Editor.js is not actually WYSIWYG. Surely some plugins might look like WYSIWYG components but the way of rendering is up to you and HTML output (or any other) might look completely different from how it looks in the editor. I've tried to handle paste from MS Word, the data from Word comes in RTF format (text/rtf). It can be parsed, converted and passed to the plugins on the client but there is too much data, browser just can't process it and gets crushed. If you are able to help with that and maybe make some investigation it would be really helpful! |
Thank you for the information. I guess this is one of the few tradeoffs that EditorJs needs to make at the moment. I will try to do some investigation to see if I can figure out some sort of solution to this issue. If I figure anything out, I'll report back. Thanks again. |
Perhaps a compromise would be a "work area" where you can paste in the document just to have it right there while you rebuild it into sections inside the editor. I guess it would be a single rich text block but it wouldn't render clientside, its just for reference. |
I've made a few observations trying to get Copy + Paste from MS Word into Chrome on MacOS, and here's what I've found. My only goal has been to support bold, italic and anchor tags with href property. I do not want to copy in any other markup or images. When I copy + pasted from MS Word into Chrome, nothing would happen. However it works properly in both FireFox and Safari without any intervention from me. So I did a little digging. If I copy and paste from MS Word, the If I copy the same text into TextEdit then into Chrome, I focused on parsing the "text/html" data. I don't know about MS Word's formatting, but I saw there are |
Hi all, Has there been any further progress on this issue? Thanks! |
Hey guys, Any update about this issue? |
Probably not as helpful given the context but the team I'm with just switched everything over to TinyMCE v5 - it doesn't use the block approach but is surprisingly feature complete and handles content from Word amazingly well. |
@bsodmike I have seen Tiny pretty awesome tool, can I get a JSON Like output from it (Or that is what you meant by it not using the block approach)? |
As per the docs, JSON output should be possible. |
@bsodmike what is it exactly ? |
Hi, |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
A common use case for a WYSIWYG editor is to allow users to paste from Microsoft Word and match the styling as found in the document.
EditorJs does not have this functionality.
Is pasting from Microsoft Word on the roadmap?
The text was updated successfully, but these errors were encountered: