You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Online

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

#101959 JCE does not apply correct dimensions of pdf files in iframe

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by andrej54 on Thursday, 11 November 2021 13:23 GMT

Werner
when trying to embed an pdf in iframe, jce editor does not accept pdf dimensions. it's alwas a tiny iframe, regardless what yout type in as dimensions. This applies für JCE 2.8., so I switched back to 2.7 and everything works as it should.

Ryan
I'm not seeing this in my tests. What values are you using for the width and height.

Please post a link to an example on your site.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Supporter
Hello,

Same very annoying issue here ...

Ryan
Same very annoying issue here ...


Please supply more information, as requested in my previous post.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Supporter
The values I am using are 900 1275

The code automatically inserted is
<p><iframe src="https://www.joomlacontenteditor.net/images/.../.../abc.pdf" type="application/pdf"></iframe></p>

I have to clic on preview or code or turn off the wysiwyg then go back to the editor to see the thumb of the pdf.
Then the code is :
<p><iframe src="https://www.joomlacontenteditor.net/images/.../.../abc.pdf" type="application/pdf" width="" height="" frameborder="0"></iframe></p>

And I have to manually enter the dimensions.

Ryan
Are you inserting the iframe with the IFrame dialog or File Manager dialog?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Supporter
With the file manager dialog

Werner
Hi Ryan,
the issue was on a production site and I repaired the problem with JCE 2.7. In put the pdf with jce 2.8. in an iframe. Dimensions: 700 x 933 px. The outcome was (guessed) 150 x 200 px - very small... PHP7.3, Joomla 3.9.13 Stable.
Thanks,
Werner

Ryan
Please try JCE Pro 2.8.1 RC10 - https://www.joomlacontenteditor.net/downloads/editor/pro/development/jce-pro-2-8-1-dev

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Supporter
Hello Ryan,

I updated to RC11 and the values are saved correctly now

Supporter
BUT...

When I save the article the code is deleted 🙁

Ryan
Please see - https://www.joomlacontenteditor.net/support/faq/editor/iframe-removed-on-saving

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Supporter
Thank you Ryan,

I my case it was the Joomla filter...

Werner
Thank You, this one works!

andrej54
I am using the JCE 2.9.17 and still I am experiencing the same problem. It happens on all iframes.
Using Youtube or inserting PDF, I always get a small window of around 1000 px X 50 px.
This is very ennoying because most of our readers are elderly people who need to see the PDF files.

I added animage to show what the problem is.

Attachments

Ryan
@andrej54 - Please post a link to an example.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Ryan
Which version of the Responsive Widgets plugin do you have installed?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

andrej54
Responsive Widgets
Website Plugin 1.0.21 January 2018 Widget Factory system

This is what I can find.... I cannot find any update.

Ryan
In the Responsive Widgets parameters, (Extensions -> Plugins, search for Responsive Widgets and click to edit), set Full Width Display to Yes.

Does this fix the display?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

andrej54
I think this did the trick .... thanks.
Maybe I was a little paranoid, but it looks that no one was out to get me 😃