• Resolved audioscavenger

    (@audioscavenger)


    Hello

    You have a great plugin here. It works like a charm, without any option offered.

    However, you HAVE to propose the option for naming the embedded images uploaded. Maintaining a media library with images named “word-document-xxx” is IMPOSSIBLE.

    I’ll do it for you because I need that option, so you can propose it in the next version.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter audioscavenger

    (@audioscavenger)

    OK I did it. That was real fast and easy. Suggested version: 1.9.0

    Now, dear Michael, I wonder why you didn’t implement it so far? I can see at least 2 other posts in this forum from users asking for it.
    Whatever, here is the code for everyone:

    mammoth-docx-converter.php:74

    
    <p>Images slug: <input type="text" id="mammoth-docx-image-slug" value="word-image" /><i>(will replace embedded images alt text if set)</i></p>
    

    mammoth-editor.js:105-108

    
            var customSlug = document.getElementById('mammoth-docx-image-slug').value;
            if (customSlug == "word-image") {
              var name = options.altText ? slug(options.altText.slice(0, 50), slugOptions) : customSlug;
            } else var name = slug(customSlug.slice(0, 50), slugOptions);
    
    Plugin Author Michael Williamson

    (@michaelwilliamson)

    Hello, and thanks for the suggestion. The reason it hasn’t been implemented is that each feature has a cost beyond the implementation in code, such as:

    * working out exactly how the feature should behave, and how to ensure that the user understands how it would behave. For instance, although you’ve chosen one way that the entered slug and alt text would interact, is that what every user would expect? Entirely reasonable alternatives might be to ignore the alt text if a custom image slug is set, or to use the custom image slug as a prefix.
    * increased complexity in the UI
    * maintenance
    * testing

    Given that this is a side project that I don’t get paid for, and I don’t have a huge amount of spare time, I prefer to err on the side of not adding features.

    Thread Starter audioscavenger

    (@audioscavenger)

    I understand.
    However you just updated the mammoth-editor.js to 1.9.0 and I couldn’t help but notice that 95% of the 32,000 lines of code are different. That’s a humongous amount of work. I wonder what you are capable of for projects you are paid for!

    +1 this feature as well, I would be willing to buy a pro version of this plugin compared to free version if it had some additional features and would help fund efforts to enhance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘naming images option needed’ is closed to new replies.