Repository navigation
wordpaste: Microsoft Word paste cleaned before Quill sees it, equations land in the formula blot #4832
smrifat1411
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Quill 2 has no paste prop, so this subclasses the clipboard module: the raw clipboard HTML from Microsoft Word, LibreOffice Writer, Google Docs, Outlook or Excel goes through wordpaste first, and Word equations come out as a span that one matcher maps onto Quill's own
formulaembed (KaTeX renders it).Live example with the six lines of wiring: https://smrifat1411.github.io/wordpaste/examples/quill.html
What it does: real nested lists with the original numbering, tables and alignment kept, colours and fonts dropped, Word and LibreOffice equations editable. 4.3 kB gzipped, zero dependencies, MIT: https://github.com/smrifat1411/wordpaste
All reactions