It’s great that you added default settings for the “Add PDF” button as I love your plugin and it was the only missing feature! Unfortunately, they don’t work on my sites: The generated shortcode always uses the defaults set in pdfjs-media-button.js. Even if they’re changed at the beginning of pdfjs-viewer.php, they have no effect. The only way is to edit the shortcode string generated in pdfjs-media-button.js, which is not a very good practice.
Note: the settings I’m talking about are “Embed height” from 800 to 1360, and “Show fullscreen” set to “false”. I didn’t test the others.
Strangely, the translations aren’t taken into account either – the only way to have the strings in French for instance, is to copy the viewer.properties file from the “fr” folder to the “en-US” folder. This has been going on forever, it’s not new to this version…
Thanks for your help,
- The topic ‘Default settings are not taken into account’ is closed to new replies.