Atto: Microsoft Word File Import (Atto)

atto_wordimport
Maintained by Picture of Eoin Campbell Eoin Campbell
Import entire Microsoft Word 2010 (.docx) files, including tables, embedded images and Microsoft Equation Editor equations, cleanly. Also imports LibreOffice and Google Docs files saved to .docx format.
2067 sites
1k downloads
90 fans

This plugin allows users import the entire contents of a Word 2010 (or later) file as clean HTML, retaining formatting such as headings, lists, bold and italic. The heading styles in Word such as "Heading 1" are mapped to corresponding tags in HTML such as h3, h4 (the "Heading 1" style is mapped to h3, etc.). For best results, the imported Word files should be well-styled, i.e. use standard Word named styles (e.g. "Heading 1", "List Bullet") as much as possible.

It supports .docx files only, not the older .doc format. The following Word versions support this format: Word 2007, Word 2010 and Word 2013 (on Windows); Word 2011 and Word 2016 (on MacOS). Note that files in.docm format (i.e. including macros) are not supported.

LibreOffice 5.x can also save files in .docx format, and they will import too, but generally the quality is not as good as native Word files, even if the document uses styles well.

Note also that the PHP XSL extension must be enabled on your webserver, and the plugin requires Moodle 2.7 or higher.

After installation, the Atto editing toolbar should have a new Word icon added to the files group, similar to the screenshot below.

Atto toolbar files group with WordImport icon added

You can click on the link to open the file selection dialog, or alternatively, just drag a file over the text area and it will be imported and converted.

Sets

This plugin is part of set Microsoft Word file import/export.

Screenshots

Screenshot #0

Contributors

Picture of Eoin Campbell
Eoin Campbell (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Sola Ajiboye
    Sat, 12 Aug 2017, 6:59 PM
    This is an excellent plugin, works as described - thanks Eoin for the support.
  • Picture of Bert van der Hooft
    Tue, 29 Aug 2017, 7:20 PM
    Having the same issue on moodle 3.3 as Ker Lin: clicking the button and uploading doesn't do anything. Using Php 7. Any suggestions?
  • Picture of Eoin Campbell
    Tue, 29 Aug 2017, 8:08 PM
    Hi Bert, to clarify: Is drag and drop working but clicking on the Word icon to upload is not?
  • Picture of Helson C
    Thu, 31 Aug 2017, 3:28 AM
    Hello, The plugin don't work in Moodle 3.1.1+
    XSL Enabled on XAMPP

    When click on word icon,
    Uncaught TypeError: Cannot set property 'formcallback' of undefined
    at yui_combo.php?3.17.2/handlebars-base/handlebars-base-min.js&3.17.2/handlebars-compiler/handlebars-c…:52
    at YUI._notify (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js&rollup/1504111899/mcore-min.js:9)
    at yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js&rollup/1504111899/mcore-min.js:9
    at YUI._notify (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js&rollup/1504111899/mcore-min.js:9)
    at YUI.T (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js&rollup/1504111899/mcore-min.js:9)
    at e.Loader._finish (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js&rollup/1504111899/mcore-min.js:16)
    at e.Loader._onSuccess (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js&rollup/1504111899/mcore-min.js:16)
    at e.Loader.p (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js&rollup/1504111899/mcore-min.js:17)
    at e.Loader.onSuccess (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js&rollup/1504111899/mcore-min.js:17)
    at s._finish (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js&rollup/1504111899/mcore-min.js:12)
  • Picture of Helson C
    Thu, 31 Aug 2017, 4:34 AM
    I has been removed all another atto plugins and the issue persist
    XSL enabled
    libxslt Version 1.1.27
    libxslt compiled against libxml Version 2.7.8
    EXSLT enabled
    libexslt Version 0.8.16
  • Picture of Eoin Campbell
    Fri, 1 Sep 2017, 5:05 AM
    This issue is occurring within your client-side browser environment, rather than on the Moodle server. Can you tell me the browser (including version and language edition), the operating system (including version and language edition)?
  • Picture of Helson C
    Wed, 6 Sep 2017, 7:37 PM
    Hello Eloin,
    Chrome 58.0.3029.110 pt_br
    Windows 7 pt-br
  • Picture of Eoin Campbell
    Wed, 6 Sep 2017, 10:11 PM
    Hmmm, I tested with my Chrome browser set to Brazilian Portuguese (but on English Windows 10) and it worked OK. Can you create an account on www.moodle2word.net (my test server) and check that it works there?
  • Picture of Roman Galperin
    Sun, 24 Sep 2017, 5:51 PM
    Hey everyone, quick question - does this plugin retain the format and styling of tables for you ? I am trying to insert a table I made in WORD, but it comes out very poor in the assignment. Has anyone encountered this or perhaps it's an issue with my theme ?
  • Picture of Eoin Campbell
    Mon, 25 Sep 2017, 12:17 AM
    In general, the plugin does not retain the styling of table cells or borders, although it does retain formatting such as merged row and column cells, and heading and body rows. The rationale is that it is preferable for the table to conform to the styling conventions defined for the Moodle server. For example, I use the following CSS definitions to set the look of tables to have heading rows with white text on a blue background, every 2nd body row shaded, and borders on all cells.

    table { margin-bottom:1.5em;box-shadow:0.8em 0.8em 0.8em 0.4em #888;table-layout:fixed}
    table, td, th { border:1px solid blue}
    tr { vertical-align:top;}
    thead tr { background-color:blue;color:white;}
    tbody > tr:nth-child(2n+1) {background-color:gray}
  • Picture of Denis Glagolev
    Wed, 22 Aug 2018, 10:09 PM
    Hallo, Thank you for that plugin, but Im not sure it is working well - after pushing "upload file" I have an error reading file ".docx". I have tried several files (with tables, images, and text only) and different browsers (chrome, maxthon, opera), but error the same
  • Picture of Eoin Campbell
    Thu, 23 Aug 2018, 1:40 AM
    You need to make sure the file is saved in Word in .docx format.
  • Picture of Tamtomo Abdi Negoro
    Thu, 1 Nov 2018, 6:02 PM
    Killed the first letter of every paragraph... wonder why? I didn't have time to wonder for long, tight schedule so have to uninstall it.. chose converting to PDF and upload the docs as PDF instead sad
  • Picture of Sa Ku
    Tue, 20 Nov 2018, 5:42 PM
    I tried installing the plugins but the installation stuck post validation with error: "error/tool installaddon/installing non installable component". What should I do to fix this?
  • Picture of Eoin Campbell
    Wed, 21 Nov 2018, 1:26 AM
    Perhaps your server has a file permissions issue in the /lib/editor/atto/plugins/ folder which prevents it from installing the plugin. Try installing a different Atto plugin to see if this might be the issue.
1 2 3 4

Commenting temporarily disabled