Import Word (docx) document into Summernote Plugin

@Hyperbytes

Sorry maybe this could be a bug? Not using docker

Log file:

[2025-08-30 10:46:04.966] START: e[36mInstalling @hyperbytes/wappler-docx2html ...e[39m
[2025-08-30 10:46:04.966] started pty with pid=undefined
[2025-08-30 10:46:04.966] targets load ...
[2025-08-30 10:46:05.051] New project routes loaded...
[2025-08-30 10:46:15.162] Main window focused: 2
[2025-08-30 10:46:18.989] Main window focused: 2

After restart:

It’s the issue that Hyperbytes posted about. Once you gave me the files and I put them in the extensions/modules folder, it now appears in Data Transformations.

Thanks guys for all you’re help.

Yes, but you're using Docker, and I'm not..

The extension files are only copied to the project extension folder when you do install the extension via the project folder. Not when installing it manually with npm install (at least not will Brian adds there also a copy script)

So just remove and add the extension from the project options.

But I also see your are using Xamp, is your project php or so? You do realize this is a NodeJS extension only?

Hey George, installed a few extensions, and that is not happening, even on a new project (NodeJS own server model)
Made a few logs

Only using htdocs as a project folder, not running Xampp

My project is NodeJS, I haven’t developed in PHP since I started using NodeJS. I did have a few older projects that are PHP but I used AMPPS. Long story on why Xampp is installed.

Well if you can try to reproduce the extension install problem on a new NodeJS project with own server with debug log recording on and then send us the log, it will be very helpful

Done:

Looks like a great tool. Only for NodeJS? Would need more instructions if it is also working in PHP. :grimacing:

Hi @web-works if you’re referring to the import word doc summernote plugin I originally posted about, I don’t think it matters if it’s NodeJS or PHP. I’m guessing it should work on both.

My extension is Node only as it is based on the mammoth node.js library which is not available in php form.

1 Like

Thanks for the reply. Can you give me directions on where to put what to get it working for me as well?

You need to place a copy of the .hjson and .js files into /extensions/server_connect/modules folder ( you may have to create it) close wappler fully and restart wappler.

@Hyperbytes do you have an example of how you used this in conjuction with a form or upload input on the front end?

It is all server level
Just process the value sent from app connect applying whichever formatters you want

So, if summernote content is in $_POST.body, i can apply any desired modules sequntially which can be in any order.

So i pick externalize images first

Then i take the output from that sn1.externalized and i then remove word content using the strip word formatting module

As a teaser, i then take the output of a new, soon to be released module, to add the missing "fullsrcreen" attribute" to summernote videos. Tying to solver the docker issues first

Lastly, the output of the last stage, in this case sc1.html and use it to update the database

Also i could perform post image extraction processing functions by performing a repeat of the "images" array output of the externalise images you will see via the picker.

this would allow for images resizing etc if needed

Hey there,

I recently created a new summernote extension that detects content pasted from Word (or Excel) automatically and transforms it to clean HTML, while preserving visual styles.

Check it out.

3 Likes

Not tried it yet but people have been asking for that functionality for years.