• Hi,

    I have a doubt about a very useful feature, which is the one below:
    “Classic Editor: Easy to use editor media button that generates the shortcode for you”

    I’ve been using this plugin for a while. The editor used is the “Wysiwyg Editor” of the ACF plugin, and the “Add PDF” button has stopped working.

    However, the shortcode is working normally ??

    Do you know if there is a solution to this problem?

    Thank you in advanced,

    Valeria.

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Thomas McMahon

    (@twistermc)

    You’re right, the plugin doesn’t work with WYSIWYG editor via ACF. I’ll have to do some digging and see if there is a fix.

    It doesn’t seem to work within Elementor either. Button shows but does nothing.
    Alan

    Plugin Author Thomas McMahon

    (@twistermc)

    Been digging into this but haven’t found a solution yet.

    Do we have any updates regarding the issue? Thank you

    Plugin Author Thomas McMahon

    (@twistermc)

    I reached out to ACF and never heard back so I’m still digging into it.

    just don’t use ID and use class, modify JS files

    Plugin Author Thomas McMahon

    (@twistermc)

    Oh nice. I thought I thought of that, but maybe not. I’ll have to look into that. I didn’t write that code, but I can re-factor it.

    This is my solution using ACF repeater fields with subfields WYSIWYG editor.

    media-button.php
    – Changed id attribute to class

    pdfjs-media-button.js
    – Add code below

    acf.addAction('load', function(){
      $('.your-class').on('click', function(e){
        openMediaWindow();	
      });
    });

    Hope this will help others.

    • This reply was modified 4 years, 2 months ago by imj13.
    Plugin Author Thomas McMahon

    (@twistermc)

    Amazing! Thank you!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘“Add PDF” button is not working’ is closed to new replies.