Pull Request for image filenames and alt attribute
-
Hey @michaelwilliamson,
First of all, thanks a lot for the plugin! We’ve been looking for a while how to streamline the process of importing content from Google Docs to WordPress, and your plugin is the closest to what we’ve been looking for.
One of the key things that are missing in that puzzle is how to streamline file-naming of the uploaded images. It seems like Google Docs doesn’t preserve the original name of the uploaded file. Hence, the workaround that I found is adding a meta text before the image that looks like:
[image filename="<name>" alt="<alt>"]
I managed to “hack”
mammoth-editor.js
to automatically fetch the image metadata and wanted to offer a PR so others can enjoy it as well.What would be the best way to submit a PR? Do you have a GitHub repo?
- The topic ‘Pull Request for image filenames and alt attribute’ is closed to new replies.