v0.0.1 alpha
A tinyMCE 6 / hugeMCE paste from word plugin
Inspiration taken from on https://github.com/ihwf/paste-from-word (the example word files I tested broke this implementation)
The PasteFromWord class handles the pasting of content from Microsoft Word into a web application. It includes methods for:
- Detecting if the pasted content is from Word.
- Cleaning the pasted HTML content by removing Word-specific tags and attributes.
- Converting Word-specific lists to proper HTML lists.
- Extracting and handling images from the clipboard data, including those in RTF format.
- Converting blob URLs to base64 strings and replacing them in the HTML content.
- Handling single file paste operations.
import "./src/pasteFromWord/index.js";
In your tiny / hugeMCE config add
plugins: `pasteFromWord`