This project is not covered by Drupal’s security advisory policy.

Mammoth is designed to convert .docx documents, such as those created by Microsoft Word, Google Docs and LibreOffice, and convert them to HTML.

Copy image from word to Drupal is a tedious work, this module integrate Mammoth.js with Drupal and save your time. How to use it:

After you install this module,
1, Navigate to /admin/content/word2html( You could see a tab "word2html" in admin content page).
2, Click choose file button, choose your docx file
3, After the convert finished, click "Copy HTML" button
4, Click the source button of you textarea field which use CKeditor,
5, Paste the html content to your field.

It auto upload image to Drupal backend, and convert it to :

<img alt="image" data-align="center" data-entity-type="file" data-entity-uuid="78ca0190-701b-474a-bba1-6bf8ad34d90c" src="/drupal10/sites/default/files/mammoth/2023/04/25/35261fe4f77ba1c665655acb35af2953.png" />

The image can be managed by img button of CKeditor.

Sponsors

This module was sponsored by The National Institute of Metrology, China

Integrate with CKeditor

It is not supported now, Will be support in the future when the author have time. Patch is welcome.

Supporting organizations: 

Project information

Releases