Support » Plugin: PDF.js Viewer » “Add PDF” button is not working

  • 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,


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

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


    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.

    Plugin Author Thomas McMahon


    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


    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


    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.

    – Changed id attribute to class

    – Add code below

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

    Hope this will help others.

    • This reply was modified 3 days, 9 hours ago by imj13.
Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.